Don’t use a bot for that. There is a discord integration mod from curse forge as well as one for bukkit servers.
Google "how to make a glitch.com discord bot" then do everything it says but take out the "ping - pong" command and just have the token. Then, set up an Uptime Robot account and put the glitch.com URL in.