From 01ec2083dcb0f0df1f23ea37cf6bfd9c51318421 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 5 Aug 2021 18:30:43 +0200 Subject: [PATCH] using VERBOSE --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 8023471..87bfc12 100644 --- a/main.py +++ b/main.py @@ -94,9 +94,11 @@ class Listener(StreamListener): def on_error(self, status_code): print(f"{errorMessage[:-2]} ({status_code}) !", end = " ") if status_code == 413: - print("La liste des mots est trop longue (triggerWords).") + if keys["VERBOSE"]: + print("La liste des mots est trop longue (triggerWords).") elif status_code == 420: - print("Déconnecter du flux.") + if keys["VERBOSE"]: + print("Déconnecter du flux.") else: print("\n") return False @@ -161,7 +163,6 @@ def main(accessToken: str, accessTokenSecret: str, consumerKey: str, consumerSec except: print("Erreur d'authentification.") exit(1) - print(f"@{api.me()._json['screen_name']}.") listener = Listener(api, users)