Skip to content
← Back to Community
Repl stops randomly
Profile icon
TylerMuranaka

Why is my repl stopping randomly after about 15 minutes??? I am trying to use my bot to play music.

Answered by EpicGamer007 [earned 5 cycles]
View Answer
Voters
Profile icon
ShivanshDhawan1
Profile icon
BraedenF1
Profile icon
TylerMuranaka
Comments
hotnewtop
Profile icon
EpicGamer007

we cant see your repl, make it unprivate.

Profile icon
EpicGamer007

Also, to use discord bots on repl, u need to create an http server then ping it with Uptimerobot with GET requests.

Profile icon
TylerMuranaka

@EpicGamer007 I made the repl public if you dont mind looking at it

Profile icon
TylerMuranaka

@EpicGamer007 Can you send me a link showing me how to do that?

Profile icon
EpicGamer007

@TylerMuranaka do u want to know how to make a http server?
https://www.afternerd.com/blog/python-http-server/
after that, you should sign up for https://uptimerobot.com and add this http server's site name(https://Asuna.TylerMuranka.repl.co) and send it get requests every few minutes.

Also, I see you have your token out in the open, you should put your bot token in a file called .env then use os.getenv('BOT_TOKEN') because now, anyone can take over your bot.

Profile icon
TylerMuranaka

@EpicGamer007 ohhhhh sorry this is my first bot thank you I just changed my token Thank you for the help

Profile icon
TylerMuranaka

@EpicGamer007 What can someone do if they have my token???

Profile icon
EpicGamer007

@TylerMuranaka you can reset the token. go back to the discord developers page where you have setup your bots token, there should be an option to generate a new key. after you regenerate the key, update the key in this repl

Profile icon
RYANTADIPARTHI

Try refreshing, restarting, or making a new repl. IF all fails, report to bugs.

https://repl.it/bugs

Profile icon
TylerMuranaka

@RYANTADIPARTHI thank you I am going to see if it is on my end before I report to bugs

Profile icon
RYANTADIPARTHI

@TylerMuranaka ok, no problem. Click check mark please.

Profile icon
tankerguy1917

it might be something to do with your internet connection. If it goes out for even a second, it stops your repl and you have to restart it.
Hope it helps :)

Profile icon
TylerMuranaka

@tankerguy1917 Thank you I looked at my ins and outs and that was part of it so I fixed that by going wired and now there are no outs with the internet but it still stops.

Profile icon
tankerguy1917

@TylerMuranaka no problem. glad i could help :)

Profile icon
NAVEENSREEJESH

yeah me also this happen if i close replit tab then the bot goes to offline

Profile icon
BraedenF1

I am having the same issue right now! My program keeps randomly stopping and I'm using the uptimeBot site. Did you figure out your problem?