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

quiz time

This commit is contained in:
Thorsten
2016-01-31 19:28:22 +01:00
parent 5af93c6d7a
commit 82cdedff49
9 changed files with 2467 additions and 21 deletions

View File

@@ -356,14 +356,14 @@ class UrlBot(IdleBot):
:param plugin: plugin obj
:param msg_obj: xmpp message obj
"""
if 'event' in action:
if 'event' in action and action["event"] is not None:
event = action["event"]
if 'msg' in event:
register_event(event["time"], self.send_reply, [event['msg'], msg_obj])
elif 'command' in event:
command = event["command"]
if rate_limit(RATE_EVENT):
register_event(t=event["time"], callback=command[0], args=command[1])
# register_event(t=event["time"], callback=command[0], args=command[1])
# kind of ugly..
register_active_event(
t=event['time'],