Hi I’ve made a discord bot linked to a website in the same project and basically the website and bot stay online but after a while the bot becomes unresponsive to commands despite being online requiring me to manually go to the glitch console and restart it which is really upsetting I have the bot linked to uptime robot to ping it yet the bot becomes inactive the project name is pollio is one of the devs would like to take a look for me
But then when visiting the website it just displays the text OK and I want the website in brief the website and bot stay online but bot becomes inactive after a while and again the project name is pollio
Hey Kyle, thanks for the additional info. The code snippet you provided works ok for the most part, but Glitch projects are stopped every 12 hours and the only way to restart a project after that is with an external request like you’d see from UptimeRobot.
Yesterday I was seeing UptimeRobot requests, but I don’t see them now, though your project is running. Can you share a screenshot of your UptimeRobot config so we can check it?
In any case, I do think your project is running fine, so it seems like whatever’s happening to make you bot stop responding isn’t a Glitch problem per se. Can you help us understand better what you’re seeing when this happens? Perhaps some additional logging in your bot’s code to detect when it satops might be useful.
@cori it is receiving uptime robot pings however after about 12 hours as you said the bot and website stay online but the bot becomes unresponsive to commands would you be able to check the entire code and make sure the express ping is setup correctly etc? Cos I really do now
ps the code snippet above doesn’t work as it disables the website and just displays the word OK
@cori this still isn’t fixed the bots becoming inactive after like 30 mins of this doesn’t get fixed I’m leaving glitch forever useless software I tell u
I will try my best to help you solve your problem for you!
You mentioned that you had uptime robot setup aswell, yet the error still happens - Could you please send me a screenshot of your uptime robot configuration to see if that is the problem, if it is not uptime robot being configured incorrectly, then there is most likely an issue with the project’s code that causes the error after a few minutes of the bot being active - If that is the case, I will be glad to take a look at your code for you!