#Giveaway Command!

11 messages · Page 1 of 1 (latest)

stiff sinew

So i have coded a giveaway command, everything works how it is in code, but if the bot crashes or if i restart the bot it does not do what i want it to do which is choose winners, announce the winners, and embed edit, and clear giveaway entries, and giveaaway_endDate.

https://pastebin.com/BrKpHUHU

pseudo mirageBOT
  • 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!
random dome

You‘d might want to use a scheduler or cron package instead that stores those timestamps in a database so they happen at that time you specify, instead of the setInterval check that will only live as long as the process

inner cloud
sinful plaza
stiff sinew

I used corn but it still does the same thing

random dome

Well, did you store the timestamps in a database?