aboutsummaryrefslogtreecommitdiff
path: root/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'commands.py')
-rw-r--r--commands.py8
1 files changed, 5 insertions, 3 deletions
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"✅ хамха забенен")