From cde081dad2ed52b6cb0e4fbd2306c2edb088bd7c Mon Sep 17 00:00:00 2001 From: Thorsten Date: Sat, 13 Aug 2016 02:31:45 +0200 Subject: [PATCH] who let the bots out? --- plugins/parsers.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/parsers.py b/plugins/parsers.py index 8c9ce15..f607a3b 100644 --- a/plugins/parsers.py +++ b/plugins/parsers.py @@ -39,6 +39,14 @@ def parse_mental_ill(**args): } +@pluginfunction('woof', '*puts sunglasses on*', ptypes.PARSE, ratelimit_class=RATE_NO_SILENCE | RATE_GLOBAL) +def command_woof(**args): + if 'who let the bots out' in args['data']: + return { + 'msg': 'beeep! beep! beep! beep! beep!' + } + + @pluginfunction('debbug', 'parse Debian bug numbers', ptypes.PARSE, ratelimit_class=RATE_NO_SILENCE | RATE_GLOBAL) def parse_debbug(**args): bugs = re.findall(r'#(\d{4,})', args['data'])