Send message at exactly 0:00, with the most accuracy possible

Hey all! I am doing a bot that sends two messages at 0:00, using the cron module to specify the schedule (*/0 0 0 0...). The issue is that it is just a few milliseconds off, and it ends up sending the message before 0:00, which is not what I am looking for. Is there any special function or module on d.js that allows one to somehow natively schedule messages more in par with Discord's internal clock? Or any creative ideas of how I could overcome that issue? Thanks
4 Replies
d.js toolkit
d.js toolkit10mo 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! - Marked as resolved by OP
Maru
MaruOP10mo ago
Not at my computer right now, but I believe I am doing Node 20, and my d.js version was the latest as of two days ago, and I haven't seen any updates that should be meaningful to my issue
chewie
chewie10mo ago
There is no solution for that, it will never be exactly on point. Nor is this djs related
Maru
MaruOP10mo ago
it would've been if there was a native way of doing it on djs, which was my question pretty much :p anyways thanks for the answer!
Want results from more Discord servers?
Add your server