aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/ircbot/supybot.service
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-06-25 13:33:44 +0200
committerRobin Jarry <robin@jarry.cc>2023-07-01 18:26:35 +0200
commit91dbd6078192e017b88bf061bb730e9d16ed5088 (patch)
treeedc2f7fcf65b699cc048b5aa5476afea02ae2aed /contrib/ircbot/supybot.service
parent69094e332779a71ddd47b88bced0992c290d67e7 (diff)
downloadaerc-91dbd6078192e017b88bf061bb730e9d16ed5088.tar.gz
contrib: add irc bot stuff
Add a small script to install a sourcehut webhook that triggers on patchset reception. Add a limnoria (supybot fork) plugin to receive the webhook requests and send IRC NOTICE messages on the proper channels. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'contrib/ircbot/supybot.service')
-rw-r--r--contrib/ircbot/supybot.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/ircbot/supybot.service b/contrib/ircbot/supybot.service
new file mode 100644
index 00000000..dd127850
--- /dev/null
+++ b/contrib/ircbot/supybot.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=IRC bot
+After=network.target auditd.service
+
+[Service]
+ExecStart=/usr/bin/supybot /var/lib/supybot/supybot.conf
+User=supybot
+Group=supybot
+WorkingDirectory=/var/lib/supybot
+ProtectHome=true
+ProtectSystem=strict
+ReadWritePaths=/var/lib/supybot /tmp
+PrivateTmp=true
+SyslogIdentifier=supybot
+StandardOutput=journal
+StandardError=journal
+
+[Install]
+WantedBy=multi-user.target