slysh
This commit is contained in:
parent
e2c4b40173
commit
9944b14439
6
main.py
6
main.py
@ -24,6 +24,8 @@ answers_che = {"че", "чё", "чe", "чо", "чo"}
|
||||
answers_aga = {"ага"}
|
||||
answers_kak = {"как"}
|
||||
answers_kto = {"кто"}
|
||||
answers_200 = {"200", "двести"}
|
||||
answers_slysh = {"слышь", "слыш"}
|
||||
|
||||
|
||||
cache = TTLCache(settings.CACHE_SIZE, settings.CACHE_TTL)
|
||||
@ -124,6 +126,10 @@ def do_action(message: Message):
|
||||
ans = "Жопой об косяк!"
|
||||
if convert_text in answers_kto:
|
||||
ans = "Конь в пальто!"
|
||||
if convert_text in answers_200:
|
||||
ans = "Отсоси на месте!"
|
||||
if convert_text in answers_slysh:
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user