diff options
| author | huker667 <huker@tuta.io> | 2026-08-11 23:11:16 +0300 |
|---|---|---|
| committer | huker667 <huker@tuta.io> | 2026-08-11 23:11:16 +0300 |
| commit | 53afac9852330e2b46a46010e269e99998b725e5 (patch) | |
| tree | d4f434308a74ba6cdec794cae28c17b820c9d472 | |
| parent | ff4b5864632e9c9ec05c9dbb050ea3b262e261e5 (diff) | |
| download | uzbekgpt-53afac9852330e2b46a46010e269e99998b725e5.tar.gz uzbekgpt-53afac9852330e2b46a46010e269e99998b725e5.tar.bz2 uzbekgpt-53afac9852330e2b46a46010e269e99998b725e5.zip | |
темп бан да 3
| -rw-r--r-- | commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands.py b/commands.py index ac34d1c..71570c8 100644 --- a/commands.py +++ b/commands.py @@ -143,9 +143,9 @@ 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: + if not args or " " not in args: return await message.answer("dayn eblan suka") - key, val = args.split(" ", 2)[0], args.split(" ", 2)[1] + key, val = args.split(" ", 1) temp_benned[str(key)] = val await message.answer(f"✅ хамха забенен") |