Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
8719475
1
Parent(s):
ef10671
......
Browse files- Powers/plugins/bans.py +3 -3
Powers/plugins/bans.py
CHANGED
|
@@ -85,7 +85,7 @@ async def tban_usr(c: Gojo, m: Message):
|
|
| 85 |
LOGGER.info(f"{m.from_user.id} tbanned {user_id} in {m.chat.id}")
|
| 86 |
await m.chat.ban_member(
|
| 87 |
user_id,
|
| 88 |
-
until_date=
|
| 89 |
txt=f"{admin} banned {banned} in <b>{chat_title}</b>!",
|
| 90 |
txt += f"\n<b>Reason</b>: {reason}" if reason else ""
|
| 91 |
keyboard = InlineKeyboardMarkup(
|
|
@@ -191,7 +191,7 @@ async def stban_usr(c: Gojo, m: Message):
|
|
| 191 |
|
| 192 |
try:
|
| 193 |
LOGGER.info(f"{m.from_user.id} stbanned {user_id} in {m.chat.id}")
|
| 194 |
-
await m.chat.ban_member(user_id, until_date=
|
| 195 |
await m.delete()
|
| 196 |
if m.reply_to_message:
|
| 197 |
await m.reply_to_message.delete()
|
|
@@ -284,7 +284,7 @@ async def dtban_usr(c: Gojo, m: Message):
|
|
| 284 |
banned = ((await mention_html(user_first_name, user_id)),)
|
| 285 |
chat_title = (m.chat.title,)
|
| 286 |
LOGGER.info(f"{m.from_user.id} dtbanned {user_id} in {m.chat.id}")
|
| 287 |
-
await m.chat.ban_member(user_id, until_date=
|
| 288 |
await m.reply_to_message.delete()
|
| 289 |
txt = f"{admin} banned {banned} in <b>{chat_title}</b>!"
|
| 290 |
|
|
|
|
| 85 |
LOGGER.info(f"{m.from_user.id} tbanned {user_id} in {m.chat.id}")
|
| 86 |
await m.chat.ban_member(
|
| 87 |
user_id,
|
| 88 |
+
until_date=bantime)
|
| 89 |
txt=f"{admin} banned {banned} in <b>{chat_title}</b>!",
|
| 90 |
txt += f"\n<b>Reason</b>: {reason}" if reason else ""
|
| 91 |
keyboard = InlineKeyboardMarkup(
|
|
|
|
| 191 |
|
| 192 |
try:
|
| 193 |
LOGGER.info(f"{m.from_user.id} stbanned {user_id} in {m.chat.id}")
|
| 194 |
+
await m.chat.ban_member(user_id, until_date=bantime)
|
| 195 |
await m.delete()
|
| 196 |
if m.reply_to_message:
|
| 197 |
await m.reply_to_message.delete()
|
|
|
|
| 284 |
banned = ((await mention_html(user_first_name, user_id)),)
|
| 285 |
chat_title = (m.chat.title,)
|
| 286 |
LOGGER.info(f"{m.from_user.id} dtbanned {user_id} in {m.chat.id}")
|
| 287 |
+
await m.chat.ban_member(user_id, until_date=bantime)
|
| 288 |
await m.reply_to_message.delete()
|
| 289 |
txt = f"{admin} banned {banned} in <b>{chat_title}</b>!"
|
| 290 |
|