What’s the worst thing that you can imagine happening to your website?

Okay, the absolute worst is probably your site getting entirely deleted. We can probably help you with that, because UBot Studio can auto-backup your site if you want it to.

But, we’re going to share something a little simpler today. A bot to notify you if ANYTHING goes wrong with your website!

This is a free bot that gives you a call if your site is down. It checks if the site is down (is it down for everyone), then chooses an action based on your preference. 

This is helpful if you expect large amounts of traffic, haven’t had time to set up a redundancy server, or just in general want to make sure that everything is going well at all times on your website. This bot could be modified to check any number of websites. It doesn’t use any features beyond UBot Studio Standard and is very simple to operate. Here’s how it works.

 

While other site monitors run on the web and usually cost a monthly fee, with UBot Studio you can build a totally free site monitoring bot that you can run on any Windows PC or any server which can check over and over again to see if your site is experiencing issues. Competing companies like Pagerduty and Pingability and UptimeRobot cost money each month, or will only email you or text you. This UBot Studio uBot can monitor your site totally for free, and if you wanted to modify it, it could check any number of sites if you want. In fact, with UBot Studio you could build an entire site monitoring bot army and create your own website monitoring company that calls whoever you need if there’s an issue! You could even build a bot that automatically reboots your site if there’s an issue, or a bot that texts you, or calls specific people depending on the day of the week or the time of day.

 

But let’s start with the basics: This simple, free bot will give you a call if your site shows up on is it down or not. Here’s the code:

 

ui stat monitor("Downtime Count: ",#downtime)
set(#downtime,0,"Global")
ui text box("Phone Number",#phonenumber)
ui text box("Website",#website)
loop while($comparison(1,"= Equals",1)) {
    navigate("http://www.downforeveryoneorjustme.com/{#website}","Wait")
    wait for browser event("DOM Ready","")
    if($exists(<innertext=w"*not just you! *">)) {
        then {
            log("Site Down!")
            increment(#downtime)
            navigate("https://manager.linode.com/","Wait")
            wait for browser event("DOM Ready","")
            wait(10)
            type text(,"username","Standard")
            type text(,"password","Standard")
            click(,"Left Click","No")
            wait for browser event("DOM Ready","")
            wait(10)
            click(<innerhtml="linode123456">,"Left Click","No")
            wait for browser event("DOM Ready","")
            wait(10)
            wait for browser event("DOM Ready","")
            click(<value="Reboot">,"Left Click","No")
            wait(800)
            navigate("http://www.downforeveryoneorjustme.com/{#website}","Wait")
            wait for browser event("DOM Ready","")
            if($exists(<innertext=w"*not just you! *">)) {
                then {
                    log("Site Still Down! Calling people")
                    navigate("http://www.callmylostphone.com/","Wait")
                    type text(<name="recipient">,#phonenumber,"Standard")
                    click(<value="Make it ring!">,"Left Click","No")
                    wait(30)
                    navigate("http://www.callmylostphone.com/","Wait")
                    type text(<name="recipient">,#phonenumber,"Standard")
                    click(<value="Make it ring!">,"Left Click","No")
                    wait(30)
                    navigate("http://www.callmylostphone.com/","Wait")
                    type text(<name="recipient">,#phonenumber,"Standard")
                    click(<value="Make it ring!">,"Left Click","No")
                    increment(#down)
                }
                else {
                }
            }
            else {
            }
        }
    }
    log("Site Up. Running in 15 Minutes!")
    wait(10000)
}

Download the .ubot file here: Website Uptime Script

As you can see this bot is extremely simple. But like most things, the idea of checking your website to see if it’s up is actually extraordinary easy. People often pay tens or even hundreds of dollars per month to have a simple service like this completed by a third-party. Why do that, when with UBot Studio you can create your own army of bots to do your bidding, always making sure your server and website are running smoothly? We hope you enjoy this free bot! If you have any more questions about you about Studio, just let us know! 

Published by Real purchase

Leave a Reply

Your email address will not be published. Required fields are marked *