This commit is contained in:
Administrator 2023-02-10 18:37:52 +03:00
parent 9944b14439
commit 39d79e3ca5

View File

@ -26,6 +26,7 @@ answers_kak = {"как"}
answers_kto = {"кто"}
answers_200 = {"200", "двести"}
answers_slysh = {"слышь", "слыш"}
answers_hello = {"здрасте", "здрасьте"}
cache = TTLCache(settings.CACHE_SIZE, settings.CACHE_TTL)
@ -130,6 +131,8 @@ def do_action(message: Message):
ans = "Отсоси на месте!"
if convert_text in answers_slysh:
ans = "За углом поссышь!"
if convert_text in answers_hello:
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)