taslim19 commited on
Commit
2068ffe
·
1 Parent(s): cfd8710

chore: Update bans.py with user changes

Browse files
DragMusic/plugins/management/bans.py CHANGED
@@ -1,4 +1,5 @@
1
- from datetime import datetime
 
2
 
3
  from pyrogram import filters
4
  from pyrogram.errors import PeerIdInvalid
@@ -160,7 +161,6 @@ async def kickme_command(client, message: Message):
160
  async def action_variants(client, message: Message, _):
161
  command = message.command[0].lower()
162
 
163
- # Silent commands should only work via reply
164
  if command.startswith('s') and not message.reply_to_message:
165
  target_user, time_val = await extract_user_and_time(message, client)
166
  else:
 
1
+ from datetime import datetime, timedelta
2
+ import re
3
 
4
  from pyrogram import filters
5
  from pyrogram.errors import PeerIdInvalid
 
161
  async def action_variants(client, message: Message, _):
162
  command = message.command[0].lower()
163
 
 
164
  if command.startswith('s') and not message.reply_to_message:
165
  target_user, time_val = await extract_user_and_time(message, client)
166
  else: