Refactors hooks registration
This commit is contained in:
parent
49d7e4ced6
commit
f39a0eac56
40 changed files with 202 additions and 168 deletions
|
|
@ -39,7 +39,7 @@ def getJsonKeys(data):
|
|||
else:
|
||||
return data.keys()
|
||||
|
||||
@hook("cmd_hook", "json")
|
||||
@hook.command("json")
|
||||
def get_json_info(msg):
|
||||
if not len(msg.args):
|
||||
raise IMException("Please specify a url and a list of JSON keys.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue