SH// SystemHalt IRC NETWORK
SystemHalt / Advanced IRC guides

How to Set Up a Limnoria IRC Bot on Debian

Install and configure a Limnoria IRC bot on Debian with Python, virtual environments, plugins, TLS and systemd.

What is Limnoria?

Limnoria is a Python IRC bot framework, based on Supybot, with plugins for commands and automation. This guide describes a new installation; it does not modify the existing bots on SystemHalt.

Set up the bot on a machine you administer and confirm that the network permits bots before connecting.

Prepare Debian and an isolated environment

Install Python tooling and create a dedicated, unprivileged account. Replace ircbot with the name you choose.

sudo apt update
sudo apt install python3 python3-venv python3-pip
sudo adduser --disabled-password --gecos "" ircbot
sudo -u ircbot mkdir -p /home/ircbot/limnoria
sudo -u ircbot python3 -m venv /home/ircbot/venv
sudo -u ircbot /home/ircbot/venv/bin/python -m pip install --upgrade pip
sudo -u ircbot /home/ircbot/venv/bin/python -m pip install limnoria

Using a virtual environment avoids changing Debian’s system Python packages.

Run the setup wizard

The wizard creates a configuration file and asks about the network, nickname, channels, and bot owner.

sudo -iu ircbot
cd ~/limnoria
~/venv/bin/supybot-wizard

For SystemHalt, use pickle.systemhalt.wtf, port 6697, and enable SSL/TLS with certificate checking. Choose only channels where the bot is welcome.

Keep the generated configuration and any passwords private. Leave the ircbot shell with exit.

Test and learn bot commands

From the bot account, run the generated configuration in the foreground to inspect connection errors:

cd ~/limnoria
~/venv/bin/supybot your-bot.conf

Replace your-bot.conf with the wizard’s actual filename. A bot owner can privately ask for help and available plugin commands. Command syntax and prefixes depend on the bot configuration.

Common built-in plugins include Admin, Channel, Config, Misc and Owner. Load only the plugins needed for your use case.

Run under systemd

Once manual startup works, create a systemd service. Stop the foreground instance first to avoid two competing connections.

[Unit]
Description=Limnoria IRC bot
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=ircbot
WorkingDirectory=/home/ircbot/limnoria
ExecStart=/home/ircbot/venv/bin/supybot /home/ircbot/limnoria/your-bot.conf
Restart=on-failure
RestartSec=10
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target

Save as /etc/systemd/system/limnoria-custom.service, update the configuration filename, and run:

sudo systemctl daemon-reload
sudo systemctl enable --now limnoria-custom.service
sudo systemctl status limnoria-custom.service
sudo journalctl -u limnoria-custom.service -n 40 --no-pager

Before adopting this example, adjust the service name and paths to your actual installation. Avoid exposing the bot’s HTTP interface publicly unless you have intentionally secured it.

Troubleshooting and next steps

  • Connection fails: verify DNS, port 6697, TLS verification, and firewall outbound access.
  • Bot joins but ignores commands: check configured prefixes, plugin load state, permissions, and whether replies are private.
  • Restart loop: inspect journalctl and confirm the service’s User, WorkingDirectory, and configuration file.
  • Nickname is in use: register the bot’s nickname with NickServ and configure supported authentication.

Read the official installation guide and getting started guide. You can also ask in SystemHalt #engineering.

Join the SystemHalt community. Connect in your browser or use pickle.systemhalt.wtf:6697 with TLS.

Open SystemHalt web chatExplore all guides