From ff4b5864632e9c9ec05c9dbb050ea3b262e261e5 Mon Sep 17 00:00:00 2001 From: huker667 Date: Tue, 11 Aug 2026 23:05:58 +0300 Subject: темп бан да 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'commands.py') diff --git a/commands.py b/commands.py index 3afe666..ac34d1c 100644 --- a/commands.py +++ b/commands.py @@ -31,6 +31,7 @@ from vars import * from helpers import * from supergenerator import * + router = Router() commands = [ @@ -48,7 +49,8 @@ commands = [ "/aben", "/button", "/clean", - "/reset" + "/reset", + "/tben", ] @router.message(Command("stats")) @@ -143,8 +145,8 @@ async def tben_handler(message: Message, command: CommandObject): 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} + key, val = args.split(" ", 2)[0], args.split(" ", 2)[1] + temp_benned[str(key)] = val await message.answer(f"✅ хамха забенен") -- cgit v1.3.1