Best approach for this ?
Hello there, so I wanna make a little game where the goal is simple : count.
So, in a dedicated channel, people would send numbers one by one and if they miss one they lose etc.
The question is : should I simply handle it in an Event file, which would be triggered every time a message is created then check for the channel etc ? Or is there a better way to handle that ?
2 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.[email protected]
v16.16.0
Isn't it a bit heavy in terms of CPU usage ? And what if I make multiple scripts triggered by the same event ? They would all be triggered each time ?
oh right, didn't think of using subfiles for this kind of stuff, thanks
then should I dispatch the code with a simple if statement ?
I see, thanks