NUOVO 📢 Risparmia fino al 30% sul tuo primo mese, offerta a tempo limitato!

How to restart your Discord bot on a schedule

Discord bot hostingUpdated Oct 6, 20263 min read

Some bots slowly use more memory the longer they run, or lose their connection after days online. A scheduled restart is a simple safety net while you fix the cause.

Create the schedule

  1. Open your server in the panel and click Quick Tasks in the left menu.
  2. Under All tasks, Default tasks, find Send Restart.
  3. Drag it into the area labelled Drop a task here to schedule it, or open its menu and choose Schedule.
  4. Set when it runs, for example every day at 04:00, when few people use the bot.
  5. Turn the switch on to enable the schedule, and click Run now once to test it.

The full page is explained in How to schedule tasks and automatic backups.

Back up first

Add a Backup Server step before the restart if your bot keeps data in files (steps run in order, and a step can wait a number of seconds). See How to create, download and restore backups.

When it helps

When it does not

A restart hides a problem, it does not solve it. If you need one every few hours, find the leak or the stall in your code.

CREA IL TUO SERVER DI GIOCO
PRONTO A INIZIARE?

Risparmia fino al 30% sul tuo nuovo server di gioco.
Prestazioni premium, attivazione immediata e affidabilità imbattibile a un prezzo migliore.

ULTIMI ARTICOLI