Shards and presence

Hey, I’m looking to get a rotating presence on a discord bot. The bot auto brings up around 38 shards, and so the prescience is a little bit messed up when it changes. I’ve set it to one minute to change, but as all shards start at different times that’s ruined. Not sure what the correct way to do this is?
4 Replies
d.js toolkit
d.js toolkit3w 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!
Mark
Mark3w ago
Use a cron job
NP
NPOP3w ago
Is there any docs on that?
Mark
Mark3w ago
Not in d.js, as it's implemented via other packages. Check out node-cron iirc

Did you find this page helpful?