services: Add new IRC bot in #bitlair-bot-test
Some checks failed
Test / build (push) Failing after 51s
Some checks failed
Test / build (push) Failing after 51s
This commit is contained in:
parent
3d6d71e068
commit
7529832dea
3 changed files with 48 additions and 2 deletions
20
roles/services/templates/irc-bot.service
Normal file
20
roles/services/templates/irc-bot.service
Normal file
|
@ -0,0 +1,20 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=Bitlair IRC Bot
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=10s
|
||||
ExecStart=/var/lib/discord-bot/.venv/bin/python /var/lib/discord-bot/ircbot.py
|
||||
DynamicUser=true
|
||||
Environment="MQTT_HOST={{ mqtt_internal_host }}"
|
||||
Environment="BOTTLECLIP_RESOURCES=/var/lib/bottle-clip"
|
||||
Environment="IRC_SERVER=irc.smurfnet.ch"
|
||||
Environment="IRC_CHANNEL=#bitlair-bot-test"
|
||||
Environment="IRC_NICK=Bitlair"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue