Storing Giveaway information
When making a giveaway bot - How would you store the entries and the users?
9 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- 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!Use a database
Any which you recommend ?
depends on whether you want to use a SQL or NOSQL database, not djs related however
mongodb is pretty easy to use
Okay I'll try that. Since I'm not that too advanced. Could I just use a .json file? Store it as DISCORD ID
Each discord ID is a user entered into the giveaway. After the giveaway it deletes the file and creates a new one?
you could, but a db is a better approach
Alright, I'll experiment.Looks like I'm signing off 2 weeks of my life
You could use keyv