This commit is contained in:
Mylloon 2021-08-04 17:51:25 +02:00
parent cba19110b2
commit aee50a863b

View file

@ -44,7 +44,7 @@ class Listener(StreamListener):
answer = stiti answer = stiti
elif lastWord in nonBase: elif lastWord in nonBase:
answer = bril answer = bril
print(f"Envoie de d'un {answer[0]}...", end = " ") print(f"Envoie d'un {answer[0]}...", end = " ")
try: # send answer try: # send answer
self.api.update_status(status = choice(answer), in_reply_to_status_id = status._json["id"], auto_populate_reply_metadata = True) self.api.update_status(status = choice(answer), in_reply_to_status_id = status._json["id"], auto_populate_reply_metadata = True)
print(f"{status._json['user']['screen_name']} s'est fait {answer[0]} !") print(f"{status._json['user']['screen_name']} s'est fait {answer[0]} !")