randydev commited on
Commit
961baf9
·
verified ·
1 Parent(s): 852b466

Update Akeno/plugins/admin.py

Browse files
Files changed (1) hide show
  1. 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
- @app.on_message(filters.command("ban") & filters.me)
 
 
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.")