using VERBOSE
This commit is contained in:
parent
2131f7bbc9
commit
01ec2083dc
1 changed files with 4 additions and 3 deletions
3
main.py
3
main.py
|
@ -94,8 +94,10 @@ class Listener(StreamListener):
|
||||||
def on_error(self, status_code):
|
def on_error(self, status_code):
|
||||||
print(f"{errorMessage[:-2]} ({status_code}) !", end = " ")
|
print(f"{errorMessage[:-2]} ({status_code}) !", end = " ")
|
||||||
if status_code == 413:
|
if status_code == 413:
|
||||||
|
if keys["VERBOSE"]:
|
||||||
print("La liste des mots est trop longue (triggerWords).")
|
print("La liste des mots est trop longue (triggerWords).")
|
||||||
elif status_code == 420:
|
elif status_code == 420:
|
||||||
|
if keys["VERBOSE"]:
|
||||||
print("Déconnecter du flux.")
|
print("Déconnecter du flux.")
|
||||||
else:
|
else:
|
||||||
print("\n")
|
print("\n")
|
||||||
|
@ -161,7 +163,6 @@ def main(accessToken: str, accessTokenSecret: str, consumerKey: str, consumerSec
|
||||||
except:
|
except:
|
||||||
print("Erreur d'authentification.")
|
print("Erreur d'authentification.")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
print(f"@{api.me()._json['screen_name']}.")
|
print(f"@{api.me()._json['screen_name']}.")
|
||||||
|
|
||||||
listener = Listener(api, users)
|
listener = Listener(api, users)
|
||||||
|
|
Reference in a new issue