From: Thorsten Date: Sat, 24 May 2025 08:11:05 +0000 (+0200) Subject: praying to urlbug X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=0cf339c2c7119511546fff26875ee74f7d651e57;p=urlbot-v3.git praying to urlbug --- diff --git a/src/distbot/minijobber/run.py b/src/distbot/minijobber/run.py index d8e1ff9..f065ea0 100644 --- a/src/distbot/minijobber/run.py +++ b/src/distbot/minijobber/run.py @@ -14,6 +14,7 @@ from distbot.plugins import ( extended, bugtracker, bots, bofh, didyouknow, votepoll, youtube, + pray, ) logger = logging.getLogger(__name__) @@ -34,6 +35,7 @@ PLUGIN_MODULES = { morse: morse.ALL, muc: muc.ALL, plugin_help: plugin_help.ALL, + pray: pray.ALL, queue_management: queue_management.ALL, searx: searx.ALL, translation: translation.ALL, diff --git a/src/distbot/plugins/pray.py b/src/distbot/plugins/pray.py new file mode 100644 index 0000000..50405ae --- /dev/null +++ b/src/distbot/plugins/pray.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +from distbot.bot.worker import Worker +from distbot.common.action import Action + + +class Pray(Worker): + binding_keys = [ + "nick.pray.#" + ] + description = "Prayer handling plugin" + usage = "bot: pray | bot: pray to that " + + def parse_body(self, msg): + # deity will know + return Action(msg="ok!") + + +ALL = [Pray]