split in multiples lines
This commit is contained in:
parent
43c962c3e0
commit
bda4d8ccd4
1 changed files with 3 additions and 1 deletions
4
main.py
4
main.py
|
@ -106,7 +106,9 @@ class Listener(StreamingClient):
|
|||
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:
|
||||
base_tweet = self.client.get_tweet(id=tweet.conversation_id, tweet_fields="author_id", user_auth=True).data
|
||||
base_author = self._get_user(base_tweet.author_id)
|
||||
if base_author.protected:
|
||||
if keys["VERBOSE"]:
|
||||
print("Auteur du premier tweet en privé, pas de réponses.")
|
||||
return
|
||||
|
|
Reference in a new issue