I'm running a Discord bot on Heroku and every hour or so (Not designated cycling which is every night), the bot loses connection and has to reconnect to the Discord API. Why does this happen? Can it be fixed?

  • If you are on free tier you get free dynos and, they sleep after 30 minutes of inactivity. – manjit5190 Jun 24 at 20:21
  • But the Discord API uses heartbeat. Isn't that technically constantly active? – exoRift Jun 24 at 23:41
  • 1
    Also, just double-checked. Only web nodes sleep. Not worker nodes. And my bot is running on a worker node. – exoRift Jun 25 at 0:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.