> From the BotGhost docs: https://botghost.com/docs/custom-commands-and-events/actions/other-actions/stop-the-bot
> Every page: https://botghost.com/docs/llms.txt

# Stop the Bot

Turn the bot off from a command, like the Stop button on the dashboard.

Stops the bot a few seconds after the block runs. Start it again from the dashboard.

![The Stop the Bot settings, with the reply warning, the permission and five minute note, and the result variables marked](https://botghost.com/docs/content/assets/workspace/block-bot-stop.png)

- **A** Put your reply before this block. Once the bot stops, nothing after it runs.
- **B** Anyone who can run the command can stop the bot, so set the command's permissions carefully. It works at most once every 5 minutes. Sooner runs the error path.
- **C** `{bot_power_result}` says what happened, and `{bot_power_retry_in}` how long until it can run again.

## Success and error paths

Turn on **Enable Success/Error Handles** to run different blocks when it works (green path) and when it fails (red path).
