Refactors hooks registration
This commit is contained in:
parent
49d7e4ced6
commit
f39a0eac56
40 changed files with 202 additions and 168 deletions
|
|
@ -22,7 +22,7 @@ def load(context):
|
|||
global URL_TPBAPI
|
||||
URL_TPBAPI = context.config["url"]
|
||||
|
||||
@hook("cmd_hook", "tpb")
|
||||
@hook.command("tpb")
|
||||
def cmd_tpb(msg):
|
||||
if not len(msg.args):
|
||||
raise IMException("indicate an item to search!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue