Help Center

My bot is offline or keeps stopping

Why a bot goes offline and how to bring it back.

Quick steps

  1. Open Bot Cloud in the dashboard and check the bot status. If it says Stopped, press Start.
  2. Open the bot in the control panel and read the console. A crash is almost always shown there, for example a wrong startup file name or a missing package.
  3. Check the startup file name matches a file you uploaded, and that your environment variables (such as the bot token) are set. Never share the token with anyone.
  4. If the bot runs out of memory it is stopped. Resize it in the dashboard within your pool, or upgrade your pool.
  5. If a bot crashes repeatedly Hartwell restarts it a few times and then stops, because the problem is in the bot itself.

Check the bot status

  • Running: the bot process is running. If it does not respond in Discord, check its logs and token.
  • Stopped: the bot was stopped by you or after repeated crashes. Press Start.
  • Suspended: an invoice is overdue. Paying it restores your bots automatically.

Read the logs

Open the bot in the control panel and read the console. When a bot stops, the last lines nearly always say why: a missing module, an invalid token, a syntax error or an unhandled exception.

Why a bot is stopped automatically

If a bot crashes, Hartwell restarts it automatically a few times. If it keeps crashing, it is left stopped, because the problem is in the bot and restarting it endlessly would not help. Fix the error shown in the logs, then press Start.

A bot that uses more memory than it was given is also stopped. Give it more memory from your pool, or reduce what it keeps in memory.

Running but not responding

  • Check that the token in your environment variables is current. Resetting the token in the Discord developer portal makes the old one stop working.
  • Check that the privileged intents your bot uses are turned on in the developer portal.
  • Check that the bot is still in your server and has permission to read and send messages in the channel.

Never share your password, a bot token, a private key or card details with anyone, including Hartwell staff.

Related articles

Still stuck? Open a support request from your dashboard, or use /support in the Hartwell Discord server.

← All help articles