17 lines
416 B
Python
17 lines
416 B
Python
import main
|
|
|
|
class ExecCommand:
|
|
def __init__(self, *args):
|
|
self.exec(*args)
|
|
|
|
def exec(self, addr, authed, data, obj, spl, success, failure, info, incUsage, length):
|
|
if authed:
|
|
if length > 1:
|
|
info(str(exec(" ".join(spl[1:]))))
|
|
return
|
|
else:
|
|
incUsage("exec")
|
|
return
|
|
else:
|
|
incUsage(None)
|