Simplify the listen function creation and management
This commit is contained in:
parent
3492cf302f
commit
603baa8581
3 changed files with 108 additions and 22 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue