Refactors hooks registration

This commit is contained in:
nemunaire 2015-11-02 20:19:12 +01:00
commit f39a0eac56
40 changed files with 202 additions and 168 deletions

View file

@ -239,7 +239,7 @@ SERVERS = dict()
# MODULE INTERFACE ####################################################
@hook("all_post")
@hook.post()
def parseresponse(res):
# TODO: handle inter-bot communication NOMORE
# TODO: check that the response is not the one already saved
@ -256,7 +256,7 @@ def parseresponse(res):
return res
@hook("cmd_hook", "more")
@hook.command("more")
def cmd_more(msg):
"""Display next chunck of the message"""
res = list()
@ -272,7 +272,7 @@ def cmd_more(msg):
return res
@hook("cmd_hook", "next")
@hook.command("next")
def cmd_next(msg):
"""Display the next information include in the message"""
res = list()