added wrappers, temp disabled all modules
This commit is contained in:
11
wrapper_command.py
Normal file
11
wrapper_command.py
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user