Keep app running after tab closed

I am using to host a discord bot. But when I turn my pc off, or when I close the tab, the program I wrote stops and the bot goes offline. Is there any way to fix this?

you need your app to be pinged every 5 mins with a http request, you can use UptimeRobot to make your app pinged every 5 minute

Hello, @Hexo_Gen, welcome to the Glitch Forums!

As @fabuss254 noted, Glitch projects automatically stop when they don’t receive requests - they stop after 5 idle minutes. How to make a glitch project to run constantly? gives a pretty good rundown on how to configure that.