My discord bot goes offline

Hello @depressed_chip

It’s cool to hear that you’re moving to Glitch!’

When a project does not get any requests it will forcefully be shutdown, what I’m meaning to say is, if you don’t have e.g. a server listening for requests and responding with 200 or something then it will be shutdown, your server needs to be requested at least per 5-10 minutes. That action can be done by using uptimerobot.

Creating a server can be done with this single line in the top of your code.

require("http").createServer(async (req,res) => { res.statusCode = 200; res.write("ok"); res.end(); }).listen(3000, () => console.log("Now listening on port 3000"));
1 Like