Refactors hooks registration
This commit is contained in:
parent
49d7e4ced6
commit
f39a0eac56
40 changed files with 202 additions and 168 deletions
|
|
@ -19,7 +19,7 @@ def help_full():
|
|||
return "Retrieve SAP transaction codes and details using tcodes or keywords: !tcode <transaction code|keywords>"
|
||||
|
||||
|
||||
@hook("cmd_hook", "tcode")
|
||||
@hook.command("tcode")
|
||||
def cmd_tcode(msg):
|
||||
if not len(msg.args):
|
||||
raise IMException("indicate a transaction code or "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue