This is a simple package to create a webserver to keep your repl online using a pinger. (such as https://up.rdsl.ga/). With the new version your console won't be spammed with useless error logs.
Usage:
First you need to install the package by going to the shell and pasting: pip install replit-keep-alive
in there. Wait until it is finished
Now the actual code:
Recommended version to use:
from replit_keep_alive import WaitressStart
WaitressStart()
from replit_keep_alive import start
start()
from replit_keep_alive import start
start("Hello world!")
- Waitress version. (Without debug/development server)
from replit_keep_alive import WaitressStart
WaitressStart()
- Or the waitress version. With custom text
from replit_keep_alive import WaitressStart
WaitressStart("Hello world!")
Paste these codeblocks somewhere in your code to get it working!
Thanks for using Replit keep alive ❤️!