chatServer/modules/[text server]/[commands]/req/module.py
2021-07-01 01:33:23 +02:00

10 lines
255 B
Python

global commands
commands["req"] = {}
def f(self,cmd):
if len(cmd) < 3:
return ["error","nonfatal","syntax","need at least 3 arguments"]
rtn = cmd[:2] + self.runCommand(cmd[2:])
return rtn
commands["req"]["function"] = f
commands["req"]["sleep"] = 0