enable tweets
This commit is contained in:
parent
e347f7fcb7
commit
2110a4d961
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -164,8 +164,8 @@ class Listener(StreamingClient):
|
||||||
print(f"Envoie d'un {answer[0]}...", end=" ")
|
print(f"Envoie d'un {answer[0]}...", end=" ")
|
||||||
try:
|
try:
|
||||||
# Send the tweet with the answer
|
# Send the tweet with the answer
|
||||||
""" self.client.create_tweet(
|
self.client.create_tweet(
|
||||||
in_reply_to_tweet_id=tweet.id, text=choice(answer)) """
|
in_reply_to_tweet_id=tweet.id, text=choice(answer))
|
||||||
print(f"{username} s'est fait {answer[0]} !")
|
print(f"{username} s'est fait {answer[0]} !")
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
error = loads(error.response.text)["errors"][0]
|
error = loads(error.response.text)["errors"][0]
|
||||||
|
|
Reference in a new issue