2021-06-30 15:26:55 +00:00
|
|
|
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
|
2021-06-30 23:33:23 +00:00
|
|
|
commands["req"]["function"] = f
|
|
|
|
commands["req"]["sleep"] = 0
|