Storing Giveaway information

When making a giveaway bot - How would you store the entries and the users?
9 Replies
d.js toolkit
d.js toolkit15mo ago
- 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!
treble/luna
treble/luna15mo ago
Use a database
Saint
SaintOP15mo ago
Any which you recommend ?
treble/luna
treble/luna15mo ago
depends on whether you want to use a SQL or NOSQL database, not djs related however mongodb is pretty easy to use
Saint
SaintOP15mo ago
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?
treble/luna
treble/luna15mo ago
you could, but a db is a better approach
Saint
SaintOP15mo ago
Alright, I'll experiment.Looks like I'm signing off 2 weeks of my life
progamersischu
progamersischu15mo ago
You could use keyv
d.js docs
d.js docs15mo ago
Suggestion for @saintpy:guide Databases: Storing data with Keyv read more
Want results from more Discord servers?
Add your server