0

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?

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

0

You must log in to answer this question.