A Node.js application that relays UptimeRobot pings to repls on Replit.
-
Create a Bash repl on Replit (Bash repls have newer node and npm versions).
-
Run this command in the Shell:
rm main.sh;git clone https://github.com/MarsRon/repl-pinger .;npm i -D;npm run build
-
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). -
Start the repl and hope everything works.
-
Create a new account on uptimerobot.com if you haven't, then create a new monitor.
-
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
-
You might want to setup a Discord webhook for the monitor too, for which I suggest following this useful guide.
-
Hope that everything worked and have fun developing!
This project is licensed under the MIT License. See LICENSE.md for details.