Counting Game Question
Hey there, so I am making a counting game for my server, and everything is right. Although, I would like to add a system where one user can't keep counting. Another user has to count with them. So user 1 starts at "1", but can't say "2" or the game will end.
Here is my code so far:
7 Replies
channel send takes object or string not number
everything else looks okey
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
learn js bro
clearTimeout()
The global clearTimeout() method cancels a timeout previously established by calling setTimeout().
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
For what it's worth, my bot has a counting game that does what you're asking, it's pretty messy, could be better, but it works https://github.com/ProbablyRaging/CreatorBot/blob/master/modules/games/counting_game.js
You're welcome to take any code you please
How I do what you're asking
GitHub
CreatorBot/counting_game.js at master · ProbablyRaging/CreatorBot
CreatorBot is a multipurpose discord.js v13 bot created for the CreatorHub Discord server - CreatorBot/counting_game.js at master · ProbablyRaging/CreatorBot
thank you, this helps slot
alot*