NUEVO 📢 Ahorra hasta un 30% en tu primer mes, ¡oferta por tiempo limitado!

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 TU SERVIDOR DE JUEGOS
¿LISTO PARA EMPEZAR?

Ahorra hasta un 30% en tu nuevo servidor de juegos.
Rendimiento premium, activación instantánea y una fiabilidad inigualable al mejor precio.

NUESTROS ÚLTIMOS BLOGS