How to make a countdown timer on discord.js?
Voters
Whacko
var timer = 0 var timeToStop = 6 SetTimout(function() { if (timer == timeToStop) { breakTimout(); /* And whatever else you need him to say. */ } else { console.log(timer); /* So that way you know where the timer is */ timer += 1; }; }, 1000)
So, after 6 seconds the timer will stop.
tallphin
Oh wait, I missed a very important part of the sentence
Coder100
In discord type what you want the bot to say send scrnsht here
Coder100
Count-down? Sounds like someone is getting their discord api privileges revoked...
Coder100
if many people use it, your bot is going to spam a lot, and spamming = ban @GoldenFox5313
Coder100
also ratelimiting too @GoldenFox5313
Coder100
probably not, it's still sending a message @GoldenFox5313
Coder100
you know how you get a woah there way to spicy
whenever you send messages to quickly? That happens to bots too @GoldenFox5313
Coder100
*human accounts with restrictions @GoldenFox5313
Alright, sorry for the delay, went to bed. Let's do this!
@Coder100 Thanks so much!
np :) @GoldenFox5313
did it work? @GoldenFox5313
@Coder100 I haven't tested it, but I will soon. Currently, where I am, it's about 2 AM. I'll let you know in the morning
ok @GoldenFox5313
gl @GoldenFox5313
Thanks, @Coder100. Anyways, good night!
@Coder100
solid code. adjusted for my needs ty