chatServer/modules/[text server]/[api]/requests/module.py

10 lines
353 B
Python
Raw Normal View History

2021-04-09 13:16:29 +00:00
moduleDepends(p("[text server]","[api]","commands"))
global textRequest
def textRequest(self,command,args):
if len(args) < 2:
return ["error","nonfatal","syntax","Correct syntax: " +command+ ",<id>,<command>,[arg1],[arg2],..."]
response = [command,args[0]] + textCommandRun(self,args[1:])
return response
textCommandAddHandler("req",textRequest)