Update Akeno/plugins/admin.py
Browse files- Akeno/plugins/admin.py +3 -1
Akeno/plugins/admin.py
CHANGED
@@ -100,7 +100,9 @@ async def extract_user_and_reason(message, sender_chat=False):
|
|
100 |
async def extract_user(message):
|
101 |
return (await extract_user_and_reason(message))[0]
|
102 |
|
103 |
-
@
|
|
|
|
|
104 |
async def test_ban_command(client: Client, message: Message):
|
105 |
if not message.reply_to_message and len(message.command) < 2:
|
106 |
return await message.reply("Please reply to a message or provide a user ID, along with a reason.")
|
|
|
100 |
async def extract_user(message):
|
101 |
return (await extract_user_and_reason(message))[0]
|
102 |
|
103 |
+
@Akeno(
|
104 |
+
~filters.scheduled & command(["testban") & filters.me & ~filters.forwarded
|
105 |
+
)
|
106 |
async def test_ban_command(client: Client, message: Message):
|
107 |
if not message.reply_to_message and len(message.command) < 2:
|
108 |
return await message.reply("Please reply to a message or provide a user ID, along with a reason.")
|