10 lines
353 B
Python
10 lines
353 B
Python
|
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)
|