Simplify the listen function creation and management

This commit is contained in:
Némunaire 2012-08-16 04:32:47 +02:00
commit 603baa8581
3 changed files with 108 additions and 22 deletions

View file

@ -16,8 +16,7 @@ def load(context):
evt = ModuleEvent(station_available, "42706",
(lambda a, b: a != b), None, 60,
station_status)
context.events.append(evt)
evt.run()
context.add_event(evt)
def help_tiny ():
"""Line inserted in the response to the command !help"""