Learn to Code via Tutorials on Repl.it

← Back to all posts
How to use and setup UptimeRobot
h
badvillain01 (65)

What is UptimeRobot?

Uptime Robot is all about helping you to keep your websites up. It monitors your websites every 5 minutes and alerts you if your sites are down.

its 100% free
It will keep your server up until your server ran into problems.

For more info click here


UptimeRobot setup

Once you log into your UptimeRobot account.

Go to Dashboard (default screen for uptimerobot is dashboard)
To add new link. Click Add New Monitor

Once you click that.
This Screen will popup

Now Select Monitor type HTTP(s).

Make sure type is HTTP(s) not ping or other

Now details popped up
like these

For Friendly Name enter what would you like to call your Monitor.
For URL (or IP) enter your web server link.

if you're using repl, it should look like this https://your-repl-name.your-username.repl.co, but with your repl name.

For Monitoring Interval, I'll suggest leaving it to the default value.

Now if you have all the info done. your page should look like this

Now you also have this box:

This means that if you select this, and your server is down or ran into any problems. UptimeRobot will alert you by sending an email.
I suggest you add alert notify

Now click Create Monitor
You have successfully created a monitor. Now your server will stay online, even if you're not running your code.


On your dashboard, your monitor will appear.

as you see, it showing that your server is down.
Your server is not down. To fix this just give it 1-2 min and reload your page.

There you go! Your Monitor is running.

Commentshotnewtop
Rutherfordio (1)

I'm hosting my bot this way, it has a file that keeps and modifies member's points based on some commands they send. After some time hosting here (in less than a day) the datafile is restored and the data lost, anyway to fix that?

badvillain01 (65)

@Rutherfordio Nothing wrong with hosting. If you're using json file to store data, then data can easily get corrupted. So try to use an external database. I personally like to use mongodb.

Rutherfordio (1)

Thanks! Yes it's a json, weird it just happens while hosting here and not in my PC, I'll try mongodb!
@badvillain01