enable tweets

This commit is contained in:
Mylloon 2022-08-08 02:32:28 +02:00
parent e347f7fcb7
commit 2110a4d961
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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]