From 2110a4d961a6d6cf312a39cb6b63dab0520d97e0 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 8 Aug 2022 02:32:28 +0200 Subject: [PATCH] enable tweets --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 41d276f..77a1dd3 100644 --- a/main.py +++ b/main.py @@ -164,8 +164,8 @@ class Listener(StreamingClient): print(f"Envoie d'un {answer[0]}...", end=" ") try: # Send the tweet with the answer - """ self.client.create_tweet( - in_reply_to_tweet_id=tweet.id, text=choice(answer)) """ + self.client.create_tweet( + in_reply_to_tweet_id=tweet.id, text=choice(answer)) print(f"{username} s'est fait {answer[0]} !") except Exception as error: error = loads(error.response.text)["errors"][0]