Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
13

NEVER have your Python Repls go to sleep again!

c4syner
c4syner

What?

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

Why?

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

How?

Using a small flask server and some threaded pinging loops.

How do I get started?

Add the neverSleep.py file to your project and paste the following code to the top of your main.py:

import neverSleep neverSleep.awake('YOUR AUTO GENERATED WEBSITE URL')

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

3 years ago
You are viewing a single comment. View All
2
3
c4syner
c4syner

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

2 years ago