mirror of
https://github.com/sigmasternchen/MinervaBot
synced 2025-03-15 07:59:00 +00:00
yeah...
This commit is contained in:
parent
9249f25b3c
commit
0f0139d954
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -127,7 +127,7 @@ if __name__ == "__main__":
|
||||||
log("executing command (@" + command[0] + ") \"" + command[1].replace("\n", "\\n") + "\"")
|
log("executing command (@" + command[0] + ") \"" + command[1].replace("\n", "\\n") + "\"")
|
||||||
output = Popen(command[1], shell=True, stdout=PIPE, stderr=STDOUT).stdout.read().decode("utf-8")
|
output = Popen(command[1], shell=True, stdout=PIPE, stderr=STDOUT).stdout.read().decode("utf-8")
|
||||||
log("result: " + output);
|
log("result: " + output);
|
||||||
if (output + command[0]).len() + 2 > 140:
|
if len(output + command[0]) + 2 > 140:
|
||||||
api.update_status(status = (command[0] + "Output of command is too long. I'm sry. : /"))
|
api.update_status(status = (command[0] + "Output of command is too long. I'm sry. : /"))
|
||||||
else:
|
else:
|
||||||
api.update_status(status = (command[0] + " " + output))
|
api.update_status(status = (command[0] + " " + output))
|
||||||
|
|
Loading…
Reference in a new issue