From 8d9fb40eb5a1ab3b2d89708a4d239c014f9bdd4b Mon Sep 17 00:00:00 2001 From: Igor Tolmachov Date: Sat, 9 Jul 2022 12:47:49 +0900 Subject: Опрос без таймера и settigs.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/filters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') 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 from aiogram import filters as f from aiogram import types as t -from shared import instances as ins +from shared import config class message: @@ -13,7 +13,7 @@ class message: @staticmethod def chance(msg: t.Message): - return ins.gen_chance.get(msg.chat.id, 10) >= randint(1, 100) + return config.chances.get(msg.chat.id, 10) >= randint(1, 100) @staticmethod def has_text(msg: t.Message): -- cgit v1.2.3