best way to keep a timer going even after my bot restarts

Hey there! I was wondering, how do I keep a timer on even if my bot restarts? For example I am doing an economy system and I have daily and weekly commands. I have cooldowns for those commands, but when I restart the bot, the cooldown resets and you can run weekly again. Anyone know how I can fix that? Thanks!
3 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
chewie
chewie3y ago
use a database, save cooldowns, set cooldowns again when bot starts
istay
istayOP3y ago
ok, i will see what i can do, thanks! im not sure how to do it, but i guess i can figure that out
Want results from more Discord servers?
Add your server