Skip to content
kuma template
CoolCoderSJ
CoolCoderSJ
Made with
NodeJS 16
NodeJS 16
Published on Apr 4, 2022Forked from CoolCoderSJ/status test
  • #tutorial
  • #CoolCoderSJ
This Repl has no description
6comments
CosmicBear
CosmicBear
2 months ago

It doesn't give me admin signup screen. Just asks for credentials.

OfirApps
OfirApps
3 months ago

whats the default password?

zplusfour
zplusfour
3 months ago

very nice

CoolCoderSJ
CoolCoderSJ
shared an update3 months ago
Using Uptime Kuma as an Alternative to UptimerobotPost

Recently, Uptimerobot announced that they will no longer allow users to ping a Repl for free. In my opinion, this is [words I cannot say here] and just an excuse to monetize more.

I finally have a solution

A few months ago, I found Uptime Kuma. Kuma is prettier and better than Uptimerobot in every aspect and completely free. To get started, just fork this repl and run it!

To keep your instance alive, you can send your pinger URL to https://up.repl.link. I do not like this pinger as a main pinger because of the 20 pinger limit and no way to view stats.

Part 2: How to make a repl ping-able

If you're using a webserver (flask, nodejs, etc) you can just use the URL Replit gives you and ping it.

image

If you have a Discord Bot, follow these steps.

Python
  • Make a new file named keepalive.py
  • Copy this code to your file-
import flask, threading app = flask.Flask(__name__) @app.route('/') def main(): return 'hi' def run(): app.run('0.0.0.0') def s(): server = threading.Thread(target=run) server.start()
  • In your main file, add this to the top import keepalive
  • Just before you run your bot, add keepalive.run()
  • So your code might look like this
keepalive.run() client.run(os.getenv("TOKEN"))
NodeJS
  • Add the following code to the top of your bot's main file
const express = require('express') const app = express() app.get('/', (req, res) => {res.send('i\'m alive'}) app.listen(3000)
Part 3: Using Kuma

Now that you have your URL, you can ping it!

  • Click Add New Monitor

image

  • Fill in the info

image

Tip: If you set retries to 1, it won't count the time the repl restarts (which is inevitable btw) as down

  • Click add
  • And you're done!

If you have any questions, just reply to this post!