Add set-able command sleep time

This commit is contained in:
Fierelier 2021-07-01 01:32:59 +02:00
parent be2b300afb
commit bbd7fc1ad6

View File

@ -234,7 +234,12 @@ class connectionThreadIn(threading.Thread):
return ["error","nonfatal","command_not_found"]
command = commands[cmd[0]]
rtn = command["function"](self,cmd)
time.sleep(pauseBetweenCommands)
sleep = pauseBetweenCommands
if "sleep" in command:
sleep = command["sleep"]
if sleep > 0: time.sleep(sleep)
return rtn
def run(self):