aboutsummaryrefslogtreecommitdiff
path: root/commands.py
diff options
context:
space:
mode:
authorhuker667 <huker@tuta.io>2026-08-11 22:58:25 +0300
committerhuker667 <huker@tuta.io>2026-08-11 22:58:25 +0300
commit9f0515fed72c0ac9490b6ebe59338855309cd87c (patch)
tree614ab80e5872276ad55390b2e587c670ffe117e8 /commands.py
parentcc618cc649a09ee6733a45ba7914c8178746afc7 (diff)
downloaduzbekgpt-9f0515fed72c0ac9490b6ebe59338855309cd87c.tar.gz
uzbekgpt-9f0515fed72c0ac9490b6ebe59338855309cd87c.tar.bz2
uzbekgpt-9f0515fed72c0ac9490b6ebe59338855309cd87c.zip
темп бан да
Diffstat (limited to 'commands.py')
-rw-r--r--commands.py12
1 files changed, 12 insertions, 0 deletions
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"))