How Should I Keep My Bot Running If I Turn Off my PC?

my code run, my main file is bot.py inside the RP Utilities beta folder

oh, you aren’t at all importing the server.py file so it won’t run.
What I recommend is to move everything out of the folder: run in Shell

mv RP-Utilities-Beta/{.,}* .
rm -r RP-Utilities-Beta
sed -i '/^entrypoint/s|".*/|"|' .replit

And then in your main file

import server

No, webview is in Replit.

so it’s just run my replit?

uhmm…

 * Serving Flask app 'server'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:3000
 * Running on http://172.31.196.33:3000
Press CTRL+C to quit
172.31.196.1 - - [18/Sep/2023 21:34:41] "GET / HTTP/1.1" 200 -

Once you do that, you should see a tab named webview, along with a link. Put that link in UptimeRobot.

it says invalid, i got the link but it’s invalid

What if you put the https:// prefix?

functioned, even thought it’s displaying this, i don’t know if it’s normal:


1 Like

Yup, that looks about right.

i see, thought my bot seems to not running, like, it’s offline and not online
image
image
i don’t know why my bot in discord is not working

it seems tunning the server but not running the bot.py

okay i have no idea how to fix that problem, i don’t know how i execute it into my bot

okay i found what happened, i didn’t imported bot

Can you mark me as a solution if I helped?

1 Like

Is there a reason you’re using uptimerobot instead of Deployments?

https://replit.com/deployments

1 Like

I doubt @HirukaRogue would rather pay for deployments then use UpTimeRobot for free.

5 Likes