- Generate a unit with the hosting config generator.
- Place env in /etc/bot.env with 600 perms.
- systemctl enable --now yourbot.
- journalctl -u yourbot -f.
- Test SIGTERM graceful stop.
Tutorial
Install a bot as a systemd service
Unit file, env file, restart and logs.