/repl-pinger

A Node.js application that relay UptimeRobot pings to repls.

Primary LanguageTypeScriptMIT LicenseMIT

A Node.js application that relays UptimeRobot pings to repls on Replit.

Installation

  1. Create a Bash repl on Replit (Bash repls have newer node and npm versions).

  2. Run this command in the Shell:

rm main.sh;git clone https://github.com/MarsRon/repl-pinger .;npm i -D;npm run build
  1. Go to the 🔒 Secrets tab, and referencing .env.example, add the environment variables one by one (Sorry, AFAIK there's no other way to add environment variables).

  2. Start the repl and hope everything works.

  3. Create a new account on uptimerobot.com if you haven't, then create a new monitor.

  4. Apply these settings to it:

    • Monitor Type: HTTP(s)
    • Friendly name: REPL_NAME or whatever
    • URL (or IP): https://[REPL_NAME].[USERNAME].replit.co
    • Monitoring Interval: every 5 minutes
  5. You might want to setup a Discord webhook for the monitor too, for which I suggest following this useful guide.

  6. Hope that everything worked and have fun developing!

Links

GitHub Replit

License

This project is licensed under the MIT License. See LICENSE.md for details.