Discord bot banned again

Ah ok! That’s actually probably not the problem in this case. What’s almost certainly happening is that your bot is shutting down about 5 minutes after you close the tab for the Editor.

What you need is something like what’s discussed in How to make a glitch project to run constantly?. You have the start of it already in your server.js file, but

  1. you need something external to ping your bot or else it won’t start back up after we shut it down every 12 hours
  2. your config in what you do have is using a port that Glitch won’t let the internet see - we only allow certain ports to be accessible - using process.env.PORT is the best way to make sure your bot’s public page can be seen by requests to keep your bot awake. This sample express config is a good place to start.

Hope this helps!