expiring warn

Hi, im new into discord bots/js and i want to do a warn command, but with expiring date. is it possible? if yes, how?
7 Replies
d.js toolkit
d.js toolkitβ€’10mo 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/lunaβ€’10mo ago
you'd have to store the timestamp somewhere and check on an interval to see whether it expired or not
KamilS
KamilSβ€’10mo ago
so it is possible, and i just need a database?
treble/luna
treble/lunaβ€’10mo ago
yes Or at least something where you store that timestamp
KamilS
KamilSβ€’10mo ago
i have an oracle database, but theres no guides for this, so idk how to do that :( it's time to learn something new
Ryx ( Danzig and UAE Collector )
use mongo
πŸŒΊπŸ‡«πŸ‡· Shigu :3 🌺
If you're only doing that, you might be fine with just keyv which is pretty simple to use and can use sqlite (local files)