turknode.cloud/solutions/bots

Telegram and Discord bots

Bots need a machine that is always on and a stable IP. The smallest Linux plan is usually enough.

Keep a bot running with systemd

Save this as /etc/systemd/system/mybot.service, then run systemctl enable --now mybot.

[Unit]
Description=My bot
After=network-online.target

[Service]
WorkingDirectory=/opt/mybot
ExecStart=/usr/bin/python3 bot.py
Restart=always

[Install]
WantedBy=multi-user.target

Manage it from code too

Restart or rebuild the server through our API.

API docs