темп бан да
This commit is contained in:
1 parent
cc618cc649
commit
9f0515fed7
3 files changed
+16
No files matched your search
+12
@@ -134,6 +134,18 @@ async def reset_handler(message: Message, command: CommandObject):
|
|||||||
for user_id in users:
|
for user_id in users:
|
||||||
reset_user_setting(user_id, key, val)
|
reset_user_setting(user_id, key, val)
|
||||||
await message.answer(f"✅ сбросил всем {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"))
|
@router.message(Command("clean"))
|
||||||
|
|||||||
@@ -123,6 +123,9 @@ async def generate(
|
|||||||
|
|
||||||
text = ""
|
text = ""
|
||||||
|
|
||||||
|
if user_id in temp_benned:
|
||||||
|
return temp_benned[str(user_id)]
|
||||||
|
|
||||||
add_one_to("stats/gens")
|
add_one_to("stats/gens")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in new issue
Block a user