Skip to content
← Back to Community
bot turns off
Profile icon
GalaxyCoding

My bot always turns off after a few hours, I have to click on the RUN button for it to work. I am using uptimerbot. How do I fix that?

Answered by Dart [earned 5 cycles]
View Answer
Voters
Profile icon
GalaxyCoding
Comments
hotnewtop
Profile icon
Dart

hey! you can look up a tutorial to make a flask server and host it with uptimer robot to keep your repl awake! its very easy and wont take you more than 20min

Profile icon
GalaxyCoding

i am using repl.it. Else, pleased a link. Thank you. @Zexogon

Profile icon
Dart

@GalaxyCoding did you require the server file in the main file?

Profile icon
GalaxyCoding

@Zexogon i did it in the server.js file. The bot does work, just that i have to turn it off after 2 or so hours.
Thank you for taking your time to help me.

Profile icon
Dart

@GalaxyCoding have you added https://diamond.galaxycoding.repl.co to uptimerobot? if you did and it still wont work i suggest apex ping

Profile icon
Dart

@GalaxyCoding also im pretty sure in your index.js file you have to write require server.js or something along those lines

Profile icon
GalaxyCoding

Thank you. I will see if this problem persists. @Zexogon

Profile icon
finnegan

I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.Best nft projects

Profile icon
RYANTADIPARTHI

Http servers, or host it somewhere.

Profile icon
IndyRishi

@RYANTADIPARTHI What about for Python REPLS? I need a REPL to stay on for at least a year. It's a Python REPL

Profile icon
GalaxyCoding

Mine is a Javascript REPL. I don‘t understand what you are trying to say. @IndyRishi

Profile icon
GalaxyCoding

@RYANTADIPARTHI I don‘t understand what you are trying to say. I want to host the repl on repl.