mirror of
https://github.com/sigmasternchen/MinervaBot
synced 2025-03-15 07:59:00 +00:00
if, else, ... it's all the same
This commit is contained in:
parent
29479fbcc2
commit
f21e855476
1 changed files with 9 additions and 1 deletions
10
main.py
10
main.py
|
@ -148,7 +148,15 @@ if __name__ == "__main__":
|
|||
time.sleep(4)
|
||||
|
||||
else:
|
||||
api.update_status(status = (command + COMMAND_NAME_SEPERATOR + output))
|
||||
text = (username + " " + command + COMMAND_NAME_SEPERATOR + output)
|
||||
while len(text) != 0:
|
||||
try:
|
||||
api.update_status(status = text[:130])
|
||||
break
|
||||
except:
|
||||
log("there is an error: " + sys.exc_info()[0])
|
||||
text = text[130:]
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
if counter % 3 == 0:
|
||||
|
|
Loading…
Reference in a new issue