Ask coding questions

← Back to all posts
How do you keep a repl alive?
maazzubair99 (73)

I made a repl.it bot in python, and I want to keep the program running even when I don't have the tab open. Is there any way I could do this, or do I just have to keep the tab open?

Answered by mat1 (4424) [earned 5 cycles]
View Answer
Comments
hotnewtop
mat1 (4424)

You can make it run a web server in a separate thread (or with asyncio) and then use a pinger to ping the website every few minutes

Dart (1187)

ok i really did not want this why do i keep starting bandwaggons

Highwayman (1443)

Google Uptimer robot.