Uptime Robot bot working



My bot was running very sell, but now my bot don’t work. What’s happening?

My github reposotory: https://github.com/TheBigerGamer/guidebot


Can you please provide more information, such as an error, if any. Or anything similar?


It simply shut down.


I don’t know what’s happening! It shuted down again!


Here are some things to keep in mind: https://glitch.com/help/restrictions/
The most interesting part for you is probably this:

  • Projects sleep after 5 minutes if they are not used, and those running for more than 12 hours are stopped. They wake again when they receive another HTTP request.

You’ll need to use Uptime Robot or something similar to send HTTP requests periodically to your bot to keep it online.

Without seeing your project, I can’t say much more about what might be going wrong. This thread here in the forums has some more helpful hints that might point you in the right direction.


Uptime Robot Doesn’t work :+1:


I don’t think that’s true, @HeadTriXz. UptimeRobot doesn’t keep a bot up, because that’s not what it’s supposed to do - it keeps the Glitch project running, and if the bot within the project is stopping that’s a different problem, and not one with UptimeRobot (or even necessarily with Glitch)


It stills shuting down!
It worked past week. The bot was running the entire week with no problems.


Is there any error in your console? I doubt this is due to uptime if you set it up properly, as I use uptime to keep 3 or 4 of my glitch projects working (Although one likes to shut down due to errors so I stopped it until I get time to fix it xD)


Uptime is not made to keep your bot up. It is made to keep the project alive. Which it does if set up properly. Whatever is causing the bot to go down is either coding errors or discord errors. (Api errors seem to crash mine a lot …) Also, hey trix xD Its Vampy :stuck_out_tongue:


also looking into your github repo, you uploaded the config file with your token in it, not sure if it is the real token or not, but it is not a good idea to let that out in the open. you may want to both change the token you use for the bot, and prevent github from git’ing your config file


also you have no code within the project to prevent it from sleeping

add this to the top of the main file of the bot, should make the bot project ping itself in order to keep itself alive. the uptime robot helps this as well.

const express = require(‘express’);
const app = express();
const http = require(‘http’);
app.get("/", (request, response) => {
setInterval(() => {
}, 224000);