Update message when someone got hit by the bot
This commit is contained in:
parent
9644437a68
commit
2d3c60bed9
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -47,7 +47,7 @@ class Listener(StreamListener):
|
||||||
print(f"{errorMessage} I didn't know how to answer.")
|
print(f"{errorMessage} I didn't know how to answer.")
|
||||||
return
|
return
|
||||||
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']} est passé au coiffeur !")
|
print(f"{status._json['user']['screen_name']} s'est fait {answer[0]} !")
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
print(f"{errorMessage} {error}")
|
print(f"{errorMessage} {error}")
|
||||||
|
|
||||||
|
|
Reference in a new issue