Hosting operations2 minutes to read

Why does my bot keep going offline?

Diagnose why a Discord, Telegram or Slack bot goes offline. Check deployment status, build errors, memory, tokens and Discord webhook alerts.

Start with the deployment status

Check whether the deployment expired, failed to build, or stopped after it started. In Bothosting, open Overview for the latest status and Console for the startup output. If the process is running but the bot stops answering, test one command or event and look for a provider login, permissions or handler error.

Match the symptom to the cause

What you see and what it usually means
SymptomLikely causeFix
Dashboard says expired or suspendedFree Spark term ended (renew every 7 days)Renew, then start the deployment
Console ends with a stack traceUnhandled error in your codeFix the first error and test the failing call
Deploy shows Failed after a GitHub pushCheckout, build or startup failedCompare the commit with Console and fix the first error
Process stops with no error, memory graph at the limitPossible out-of-memory stopReduce caching or give the deployment more memory
Login fails with an invalid token messageToken reset or pasted wrongSave the new token in Variables and restart
Bot drops after 15 to 30 minutes of quietHost sleeps idle web appsMove to a host or plan that runs workers continuously

Crashes and restart loops

Read Console from the most recent start. Fix the earliest meaningful error before retrying a crash loop. Common startup problems include a missing package, a missing variable or an incorrect entry path. If the last change came from GitHub, trace the push through checkout and build.

In Settings, connect a Discord crash-alert webhook and use Send test to check the destination. Eligible deployments can also enable Restart on crash. Repeated failures can pause automatic restarts.

Running out of memory

Compare the memory graph with the stop time. Bothosting can show a confirmed or likely out-of-memory stop based on the evidence available. Look for a sudden memory peak, growing caches or heavier startup work before adjusting the allocation. If the bot needs more room, a paid Bothosting plan lets you give one deployment more of the shared pool. See sizing a plan.

Stop it happening again

  • Renew Spark when the reminder arrives, or move to a paid plan with no renewal.
  • Log a line when the bot connects and when it disconnects, so the timeline is visible.
  • Stop copies on your PC. Two processes on one token cause duplicate replies on Discord and conflict errors on Telegram.
  • Connect an AI assistant with read access to diagnose outages for you. See read-only AI status checks.