Conversation
|
Works with discord.js modals now. |
|
Don't get the reactions lost when a longer giveaway is occuring and the bot restarts. |
|
How would a database help this tho? The reactions are still there, it's just that the "countdown" has to be reactivated after a restart somehow. |
The reactions are there on the discord but not stored so ultimately after a restart the whole giveaway needs to be posted again. Thats why I would suggest saving the id of the message createdAt updatedAt and so on. Now the bot can check through those message ids if one ends pick a winner from saved userId's |
ecsr
left a comment
There was a problem hiding this comment.
Make sure you run the linter and formatter as well, you can do this by running the following commands in a terminal.
$ npx eslint src/
$ npx prettier --write src/
|
Also as @ckhenzy is saying we probably want to store some information in the database, message id, giveaway deadline and emoji should be enough and then we can retrive all users who reacted when needed. |
|
I would store the |
:jit: