Share your repls and programming experiences

← Back to all posts
NEVER have your Python Repls go to sleep again!
c4syner (77)


You heard that right! This ₜᵢₙᵧ addition to your program allows is it stay alive and running indefinitely.


I wanted to be able to have my discord bot stay awake without the use of external ping programs.


Using a small flask server and some threaded pinging loops.

How do I get started?

Add the file to your project and paste the following code to the top of your

import neverSleep

That's it!
If this gets enough popularity I'll add it to PyPi to make it even easier.

CoffeeGuy (1)

does this still work?? :D

c4syner (77)

@CoffeeGuy Had to update it but it appears to be working now! ping me here if you need help setting it up.

SixBeeps (3514)

but what about node?

c4syner (77)

@SixBeeps you technically could put in ANY website (including a node.js repl) and have it keep online.

SixBeeps (3514)

@c4syner I mean, considering this was written in Python, it wouldn't work. Node.js doesn't do flask.

c4syner (77)

@SixBeeps No no... If you were to use a different programming language other than python. It will work because it's really just a scheduled ping program. The thing to note here is that this is outside of node.

SixBeeps (3514)

@c4syner You mentioned that you'd add this to your program to make it work. Do you mean like make another Repl to keep it alive?