diff options
Diffstat (limited to 'wrapper_command.py')
-rw-r--r-- | wrapper_command.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/wrapper_command.py b/wrapper_command.py new file mode 100644 index 0000000..dd51534 --- /dev/null +++ b/wrapper_command.py @@ -0,0 +1,11 @@ +from wrapper_player import * + +def command(command = "help"): + def decorator(wrapped): + @hook.command(command) + def wrapper(sender, command, label, args): + try: + return wrapped(sender = py_players[sender], command = command, label = label, args = args) + except: + print(print_traceback()) + return decorator
\ No newline at end of file |