> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.sparkedhost.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Restart your Discord Bot automatically

With our feature called “Schedules”, servers can be restarted without the interaction of a 3rd party software or API. This is specifically useful if the bot has to be restarted periodically.

### How to Restart your Discord Bot automatically

1. In the left side panel, select the tool “Schedules”

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/schedulestool_1xv53lk.png)

2. Create a new schedule. There, you will need to assign it a name, and configure the time between each restart. The system uses the cronjob syntax. [This ](https://crontab.guru/)page can help you to configure the time. You can also configure if you want the schedule only to be executed when the server is online.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/createschedule_1y96c66.png)

3. Now, click on the previously created task, and click where it says “New task”.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/schedulemenu_1ga0rum.png)

4. Here, you will have to select an action from the menu. In this case, we will select “Send power action”, and in the payload menu, we will select “Restart the server”. Finally, click “Create task”.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/createtask_6jvj4d.png)

5. Your bot will now be restarted automatically using our Schedule system. You can always modify this, and adjust the time, or any other parameter.

---

If you require any further assistance, please create a ticket [here](https://billing.sparkedhost.com/submitticket.php).

---

Created By: Julián M.
