From 43c962c3e0c1d6acdcbc1d9621865457d5aff748 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 11 Aug 2022 12:25:39 +0200 Subject: [PATCH] add verboses --- main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.py b/main.py index 1f83442..13f875f 100644 --- a/main.py +++ b/main.py @@ -104,8 +104,15 @@ class Listener(StreamingClient): if not tweet.text.startswith("RT @"): # Cancel if author of the first tweet in the conversation is in private if tweet.conversation_id: + if keys["VERBOSE"]: + print("Thread...", end=" ") if self._get_user(self.client.get_tweet(id=tweet.conversation_id, tweet_fields="author_id", user_auth=True).data.author_id).protected: + if keys["VERBOSE"]: + print("Auteur du premier tweet en privé, pas de réponses.") return + else: + if keys["VERBOSE"]: + print("Auteur du premier tweet en publique...", end=" ") author = self._get_user(tweet.author_id) # Clean the tweet lastWord = cleanTweet(tweet.text)