# systemd unit to keep the Discord presence bot running on OVH. # Install: # sudo cp deploy/discord-bot.service /etc/systemd/system/ # (edit WorkingDirectory / ExecStart paths to match your server) # sudo systemctl daemon-reload # sudo systemctl enable --now discord-bot # sudo systemctl status discord-bot # check it's running # journalctl -u discord-bot -f # live logs [Unit] Description=rotten.network Discord presence bot After=network-online.target Wants=network-online.target [Service] Type=simple WorkingDirectory=/var/www/html ExecStart=/usr/bin/python3 /var/www/html/scripts/discord_bot.py Restart=always RestartSec=5 # Token is read from scripts/token.txt by default; or set it here instead: # Environment=DISCORD_TOKEN=your-token [Install] WantedBy=multi-user.target