From 9f0515fed72c0ac9490b6ebe59338855309cd87c Mon Sep 17 00:00:00 2001 From: huker667 Date: Tue, 11 Aug 2026 22:58:25 +0300 Subject: темп бан да MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands.py | 12 ++++++++++++ supergenerator.py | 3 +++ vars.py | 1 + 3 files changed, 16 insertions(+) diff --git a/commands.py b/commands.py index 9c01e3d..3afe666 100644 --- a/commands.py +++ b/commands.py @@ -134,6 +134,18 @@ async def reset_handler(message: Message, command: CommandObject): for user_id in users: reset_user_setting(user_id, key, val) await message.answer(f"✅ сбросил всем {key} на {val}") + + +@router.message(Command("tben")) +async def tben_handler(message: Message, command: CommandObject): + if message.from_user.id != ADMIN_ID: + return + args = command.args + if not args or len(args.split(" ", 2)) < 2: + return await message.answer("dayn eblan suka") + key, val = args.split()[0], args.split()[1] + temp_benned = temp_benned | {str(key): val} + await message.answer(f"✅ хамха забенен") @router.message(Command("clean")) diff --git a/supergenerator.py b/supergenerator.py index 323e438..e552ef3 100644 --- a/supergenerator.py +++ b/supergenerator.py @@ -123,6 +123,9 @@ async def generate( text = "" + if user_id in temp_benned: + return temp_benned[str(user_id)] + add_one_to("stats/gens") try: diff --git a/vars.py b/vars.py index 0fcb5e4..b4658df 100644 --- a/vars.py +++ b/vars.py @@ -3,3 +3,4 @@ last_error_time = {} last_block_time = {} alo_command = {} user_contexts = {} +temp_benned = [] -- cgit v1.3.1