chatServer/modules/[text server]/[commands]/req/module.py

10 lines
255 B
Python
Raw Normal View History

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