My discord bot keeps going offline

Even tho I’m using to ping my project, it still goes offline whenever I leave glitch. Yes, I’ve put the ping stuff on top of the main file which is index.js `
require("http").createServer(async (req,res) => { res.statusCode = 200; res.write("ok"); res.end(); }).listen(3000, () => console.log("Now listening on port 3000"));
That’s what I’ve put. Please help me

See this:

If it keeps happening, do let us know!

1 Like

It keeps going offline for about 2 or a half hours when I leave glitch.