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 dbRpgBot#1051 is onlinexpGiver function calledINCORRECTxpGiver function calledxpGiver function calledINCORRECT
connected to dbRpgBot#1051 is onlinexpGiver function calledINCORRECTxpGiver function calledxpGiver function calledINCORRECT
(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?