This commit is contained in:
Administrator 2023-02-05 00:40:16 +03:00
parent d1431e6351
commit e2c4b40173

View File

@ -22,6 +22,8 @@ answers_300 = {"300", "триста"}
answers_a = {"a", "а"}
answers_che = {"че", "чё", "чe", "чо", "чo"}
answers_aga = {"ага"}
answers_kak = {"как"}
answers_kto = {"кто"}
cache = TTLCache(settings.CACHE_SIZE, settings.CACHE_TTL)
@ -118,6 +120,10 @@ def do_action(message: Message):
ans = "Хуй через плечо!"
if convert_text in answers_aga:
ans = "В жопе нога!"
if convert_text in answers_kak:
ans = "Жопой об косяк!"
if convert_text in answers_kto:
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)