Search code examples
herokudiscord.js

My bot is staying online even after I've shut down all possible hosts


Today I noticed that my bot was sending double messages (usually means that it's running 2 clients). After I shut down my bot from heroku, it was still online. Any idea how can I fix this?


Solution

  • Check if you are running the bot locally, and make sure all servers linked to the bot are turned off, sometimes the bot takes a while to completely shut down and go offline in discord, so try waiting for a few minutes.

    in Heroku => navigate to resources tab and turn off npm worker: start