aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/filters.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/filters.py b/utils/filters.py
index 90b908a..5dc280b 100644
--- a/utils/filters.py
+++ b/utils/filters.py
@@ -5,7 +5,7 @@ from random import randint
5from aiogram import filters as f 5from aiogram import filters as f
6from aiogram import types as t 6from aiogram import types as t
7 7
8from shared import instances as ins 8from shared import config
9 9
10 10
11class message: 11class message:
@@ -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 ins.gen_chance.get(msg.chat.id, 10) >= randint(1, 100) 16 return config.chances.get(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):