Turn on push alerts in the Bothosting app
Install the iOS app or the Android app, sign in and allow notifications. Your phone is then alerted whenever a deployment stops unexpectedly: a crash, an out-of-memory kill or a process that exits on its own. The alert names the deployment. Stopping or restarting it yourself doesn’t send one. Alerts are included on every plan, including free Spark. Pair them with Restart on crash so the bot comes back while you read what went wrong.
Set it up once
- Open the app and sign in with your Bothosting account.
- Allow notifications when the app asks. If you said no earlier, open Account and tap the Notifications row to allow them.
- Open each deployment, go to Settings and turn on Restart on crash. Automatic restarts pause during a crash loop, so a broken release doesn’t restart forever.
- To test it, push a commit that throws on startup to a test deployment. The alert arrives shortly after the process stops. Then revert the commit.
Each phone you sign in on receives alerts. On Android, the alerts use their own channel, Deployment crashes, which you can adjust in system settings.
Post alerts to a Discord channel too
If a team looks after the bot, add a Discord channel webhook in the deployment’s alert settings on the website. Each crash posts a message naming the deployment and the reason, such as an out-of-memory stop. GitHub deploys also post whether the new version stayed running. The webhook and the push alerts work side by side.
Why not an uptime monitor?
Services such as UptimeRobot request a URL every few minutes. A Discord bot or Telegram polling bot has no URL to request, and adding a web server just for pings checks the web server, not the bot. A Bothosting alert watches the process itself. For a website or API, an external monitor is still a useful second check, because it also catches DNS or certificate problems. Keep-alive pings and bots.
What to do when the alert arrives
Open the deployment in the app, then open Logs and find the first error after the last start. A stack trace is a bug in the code. A stop with the memory graph at its limit is an out-of-memory kill. A login error means the token was reset. If the free plan expired, renew it from the deployment. Why a bot keeps going offline and fixing it from your phone.