Multiple Schema creation on message for level???

So basically I have the leveling system and on the surface it seems to work, but there is just a few issues when I send a message 1. it creates more than one level schema (anywhere from 2-13) 2. the cooldowns dont work I am really scratching my head on this one since Ive tested with console.logs and the actual function is only called once succsefully as seen here:
connected to db
RpgBot#1051 is online
xpGiver function called
INCORRECT
xpGiver function called
xpGiver function called
INCORRECT
connected to db
RpgBot#1051 is online
xpGiver function called
INCORRECT
xpGiver function called
xpGiver function called
INCORRECT
(incorrect following the call means it didnt run the code bc its a bot) so it is only called once, yet, the bot sends the level up message multiple times. After that it works perfectly fine except cooldowns wont work but it only levels up and changes the data of one of the schema not all, heres what really confusing. It creates an almost random amount of schema like I said 2-13 in the provided screenshot it made 12. Also even when removing cooldowns it does the same thing?!?! I just dont know what could cause it?
2 Replies
d.js toolkit
d.js toolkit•15mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
ifml
ifml•15mo ago
not djs related #other-js-ts
Want results from more Discord servers?
Add your server