mirror of
https://github.com/sigmasternchen/MinervaBot
synced 2025-03-15 07:59:00 +00:00
this should prevent twitter from freaking out
This commit is contained in:
parent
15611ef84a
commit
eb55e5f71e
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -145,7 +145,7 @@ if __name__ == "__main__":
|
||||||
except tweepy.error.TweepError as e:
|
except tweepy.error.TweepError as e:
|
||||||
log("there is a twitter error: " + e.reason)
|
log("there is a twitter error: " + e.reason)
|
||||||
text = text[130:]
|
text = text[130:]
|
||||||
time.sleep(4)
|
time.sleep(3)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
text = (command + COMMAND_NAME_SEPERATOR + output)
|
text = (command + COMMAND_NAME_SEPERATOR + output)
|
||||||
|
@ -156,7 +156,7 @@ if __name__ == "__main__":
|
||||||
except tweepy.error.TweepError as e:
|
except tweepy.error.TweepError as e:
|
||||||
log("there is a twitter error: " + e.reason)
|
log("there is a twitter error: " + e.reason)
|
||||||
text = text[130:]
|
text = text[130:]
|
||||||
time.sleep(1)
|
time.sleep(3)
|
||||||
|
|
||||||
|
|
||||||
if counter % 3 == 0:
|
if counter % 3 == 0:
|
||||||
|
|
Loading…
Reference in a new issue