[Unit]
Description=XMPP Bot — %i
After=network-online.target ejabberd.service
Wants=network-online.target

[Service]
Type=simple
User=hmo
WorkingDirectory=/home/hmo/bots
Environment="PYTHONUNBUFFERED=1"
Environment="BOT_NAME=%i"
ExecStart=/home/hmo/.local/bin/uv run python /home/hmo/bots/%i/bot.py
Restart=always
RestartSec=15
StandardOutput=journal
StandardError=journal
SyslogIdentifier=xmpp-bot-%i

[Install]
WantedBy=multi-user.target
