diff options
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/filters.py | 4 |
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 | |||
| 5 | from aiogram import filters as f | 5 | from aiogram import filters as f |
| 6 | from aiogram import types as t | 6 | from aiogram import types as t |
| 7 | 7 | ||
| 8 | from shared import instances as ins | 8 | from shared import config |
| 9 | 9 | ||
| 10 | 10 | ||
| 11 | class message: | 11 | class 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): |
