aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorIgor Tolmachov <me@igorek.dev>2022-07-09 12:59:06 +0900
committerIgor Tolmachov <me@igorek.dev>2022-07-09 12:59:06 +0900
commit8e2b19caa5d92ddad8a8e87b6aae724d3198a14b (patch)
tree0186c54017430fcbdab14cbfc8a22e4ea68a274d /utils
parentdd5afe2b16cf6f5acb8f3345617a7aa9d8b01c57 (diff)
downloadkarpov_ai_bot-8e2b19caa5d92ddad8a8e87b6aae724d3198a14b.tar.gz
karpov_ai_bot-8e2b19caa5d92ddad8a8e87b6aae724d3198a14b.zip
Фикс бага
Diffstat (limited to 'utils')
-rw-r--r--utils/filters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/filters.py b/utils/filters.py
index 5dc280b..9b8ce5c 100644
--- a/utils/filters.py
+++ b/utils/filters.py
@@ -13,7 +13,7 @@ class message:
13 13
14 @staticmethod 14 @staticmethod
15 def chance(msg: t.Message): 15 def chance(msg: t.Message):
16 return config.chances.get(msg.chat.id, 10) >= randint(1, 100) 16 return config.chances.get(str(msg.chat.id), 10) >= randint(1, 100)
17 17
18 @staticmethod 18 @staticmethod
19 def has_text(msg: t.Message): 19 def has_text(msg: t.Message):