My bot is down often


#1

Hello, I do not know if it’s all about Glitch but my project goes offline automatically without error

Edit: I’m going on uptime and it tells me that the project and connection timeout

Capture


#2

Hey @zeis974, can you post a picture of your UptimeRobot configuration for this so we can check it out (and also look at the project)?


#3

Here My project is : odium-bot


#4

Your project isn’t sending a web page at that address, so UptimeRobot never gets a response when it asks for it and times out

You need something like what I’ve done in https://glitch.com/edit/#!/discordjs-bot-extended?path=server.js to send some sort of response to UptimeRobot when it asks for your site. It doesn’t need to be an actual web page - any sort of successful response will work fine.


#5

Ok very thanks @cori ^^


#6

I have to use the code in server.js?


#7

It has to be in the execution path. You could put it in a different file as long as you require that file from your executed code (in your case server.js).


#8

Oh no it’s good I found it thank you for your help