Skip to content

Replit Keep Alive is a Python script wrapper meant to, with the help of UptimeRobot, keep Replit from terminating the bot when the browser tab is closed.

License

Notifications You must be signed in to change notification settings

karras2/replit-keep-alive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Replit Keep Alive

Replit Keep Alive is a Python script wrapper meant to, with the help of UptimeRobot, keep Replit from terminating a Python script when the browser tab is closed.

Installation

The host environment needs to have the following software packages:

Usage

Keeping a script alive without modification of the script

  1. Copy requirements.txt and everything in /src to the host environment.

  2. Modify .replit by replacing <script> with the target script file.

  3. Configure UptimeRobot to point to your web server.

  4. Install dependencies.

    pip install -r requirements.txt
    

Incorporating Replit Keep Alive into another software module

  1. Copy all source code files (except for .replit as this will interfere with Replit's normal run process) to the host environment.

  2. Import the Replit Keep Alive module into your software module.

    from replit_keep_alive import keep_alive
  3. Call the keep_alive() method where appropriate.

  4. Configure UptimeRobot to point to your web server.

Contributing

If you would like to contribute to this project, you can file an issue or submit a pull request from a forked repository. If you would like to contribute, but don't have any coding experience, you can ask questions or propose changes over at our discussions page.

About

Replit Keep Alive is a Python script wrapper meant to, with the help of UptimeRobot, keep Replit from terminating the bot when the browser tab is closed.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages