Refactors hooks registration
This commit is contained in:
parent
49d7e4ced6
commit
f39a0eac56
40 changed files with 202 additions and 168 deletions
|
|
@ -79,7 +79,7 @@ def translate(term, langFrom="en", langTo="fr"):
|
|||
|
||||
# MODULE INTERFACE ####################################################
|
||||
|
||||
@hook("cmd_hook", "translate",
|
||||
@hook.command("translate",
|
||||
help="Word translation using WordReference.com",
|
||||
help_usage={
|
||||
"TERM": "Found translation of TERM from/to english to/from <lang>."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue