1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-02-23 16:23:58 +01:00
aerc/contrib/ircbot/Sourcehut/config.py
Robin Jarry 91dbd60781 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>
2023-07-01 18:26:35 +02:00

14 lines
355 B
Python

from supybot import conf, registry
try:
from supybot.i18n import PluginInternationalization
_ = PluginInternationalization('Sourcehut')
except:
_ = lambda x: x
def configure(advanced):
from supybot.questions import expect, anything, something, yn
conf.registerPlugin('Sourcehut', True)
Sourcehut = conf.registerPlugin('Sourcehut')