Skip to main content

Bots and automation

Telegram and Discord bots, n8n workflows, scrapers and scheduled scripts. Things that need to run all the time, without a laptop left switched on at home.

What people run

  • chat bots for Telegram, Discord or Matrix in Python or Node.js,
  • n8n for connecting services and automating tasks, in a container,
  • scripts in cron: price checks, data downloads, reports by email.
docker run -d --name n8n --restart unless-stopped \
  -p 5678:5678 \
  -v n8n_data:/home/node/.n8n \
  n8nio/n8n

Keep it running

Run your own bot as a systemd service with Restart=always. It then comes back after a crash and after a reboot. Webhooks work directly, because the Raspberry Pi has a public IPv4 and IPv6 address and doesn't sit behind your home router.