1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

who let the bots out?

This commit is contained in:
Thorsten
2016-08-13 02:31:45 +02:00
parent 492ca7a7c8
commit cde081dad2

View File

@@ -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'])