i dont know what im doing wrong D: i keep getting "Error handling /daily: ValidationError: balance: Cast to Number failed for value "NaN" (type number) at path "balance"." and when i do /daily in the server with the bot it just says the bot is thinking.
hey! at 4:59 I have this error : TypeError: (intermediate value) is not a function at Object. (C:\Users\auiop\OneDrive\Bureau\Document\BOT JS\bot economie\main.js:15:1) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47 Node.js v18.16.0 can you explain me why ?
Hey, amazing video! but I am getting this error; "Error handling /daily: ReferenceError: Cannot access 'userProfile' before initialization", if you are able to reply and try to help me, that would be great!
I have this error: node:internal/process/promises:288 triggerUncaughtException(err, true /* fromPromise */); ^ Error: certificate has expired at TLSSocket.onConnectSecure (node:_tls_wrap:1538:34) at TLSSocket.emit (node:events:513:28) at TLSSocket.emit (node:domain:489:12) at TLSSocket._finishInit (node:_tls_wrap:952:8) { code: 'CERT_HAS_EXPIRED' } Node.js v18.12.1
I encountered this error:
error handling /daily: MongooseError: Operation `userprofiles.findOne()` buffering timed out after 10000ms
How to fix it?
im getting an error as well error: -4058 code: 'enoit' syscall: 'scandir'
Finally wait is over!!!
i dont know what im doing wrong D: i keep getting "Error handling /daily: ValidationError: balance: Cast to Number failed for value "NaN" (type number) at path "balance"." and when i do /daily in the server with the bot it just says the bot is thinking.
I dont have this error but my bot is thinking. if you can help us. thanks!
Lovely content!
To anyone having an issue with the async function at 4:59 chat gpt created this lovely fix
const connectToDB = async () => {
await mongoose.connect(process.env.MONGODB_URI);
console.log('Connected to the DB');
};
const loginToClient = async () => {
await client.login(process.env.TOKEN);
};
(async () => {
try {
await Promise.all([
connectToDB(),
loginToClient(),
]);
console.log('Initialization complete!');
} catch (error) {
console.error('Initialization failed:', error);
}
})();
ty
my bot doesnt have cooldown for the command even tho i did it right pls help
hey! at 4:59 I have this error :
TypeError: (intermediate value) is not a function
at Object. (C:\Users\auiop\OneDrive\Bureau\Document\BOT JS\bot economie\main.js:15:1)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
Node.js v18.16.0
can you explain me why ?
It's okay, I found the error and I corrected it
how
Hey, amazing video! but I am getting this error; "Error handling /daily: ReferenceError: Cannot access 'userProfile' before initialization", if you are able to reply and try to help me, that would be great!
Fixed it, but now I have an error: ValidationError: userID: Path `userID` is required.
Fixed
I'm getting the same error too how can i solve it?
make sure where capital u and where normal u in the userinfo and is will be working
@@frequences
Which? the ReferenceError or ValidationError?
i found it: ReferenceError: Cannot access 'UserProfile' before initialization
anyway to fix this issue?
I love this guy but i'm banned on his discord đą
I have this error:
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
Error: certificate has expired
at TLSSocket.onConnectSecure (node:_tls_wrap:1538:34)
at TLSSocket.emit (node:events:513:28)
at TLSSocket.emit (node:domain:489:12)
at TLSSocket._finishInit (node:_tls_wrap:952:8) {
code: 'CERT_HAS_EXPIRED'
}
Node.js v18.12.1