This commit is contained in:
Administrator 2023-02-20 18:46:55 +03:00
parent 29fcf1df35
commit 92ee606536

View File

@ -27,6 +27,7 @@ answers_kto = {"кто"}
answers_200 = {"200", "двести"}
answers_slysh = {"слышь", "слыш"}
answers_hello = {"здрасте", "здрасьте"}
answers_ladno = {"ладно"}
cache = TTLCache(settings.CACHE_SIZE, settings.CACHE_TTL)
@ -137,6 +138,8 @@ def do_action(message: Message):
ans = "За углом поссышь!"
if convert_text in answers_hello:
ans = "Пизду покрасьте!"
if convert_text in answers_ladno:
ans = "Прохладно!"
if ans is not None and randrange(1, 101) <= info["probability"]:
bot.reply_to(message, ans)
mongo.inc(message.from_user.username, message.chat.id)