mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
fix
This commit is contained in:
parent
f7381f778c
commit
b1cdbc496e
1 changed files with 3 additions and 3 deletions
|
|
@ -7,7 +7,7 @@ from misskaty.helper.localization import use_chat_lang
|
|||
from misskaty.vars import SUPPORT_CHAT, SUDO, LOG_CHANNEL, COMMAND_HANDLER
|
||||
|
||||
|
||||
@app.on_message(filters.private & filters.incoming, group=-1)
|
||||
@app.on_message(filters.incoming, group=-1)
|
||||
async def ban_reply(self: Client, ctx: Message):
|
||||
ban = await db.get_ban_status(ctx.from_user.id)
|
||||
if ban.get("is_banned"):
|
||||
|
|
@ -71,7 +71,7 @@ async def ban_a_user(bot, message):
|
|||
if jar['is_banned']:
|
||||
return await message.reply(f"{k.mention} is already banned\nReason: {jar['ban_reason']}")
|
||||
await db.ban_user(k.id, reason)
|
||||
await message.reply(f"Successfully banned this {k.mention}!! Reason: {jar['ban_reason']}")
|
||||
await message.reply(f"Successfully banned user {k.mention}!! Reason: {jar['ban_reason']}")
|
||||
|
||||
|
||||
|
||||
|
|
@ -103,7 +103,7 @@ async def unban_a_user(bot, message):
|
|||
if not jar['is_banned']:
|
||||
return await message.reply(f"{k.mention} is not yet banned.")
|
||||
await db.remove_ban(k.id)
|
||||
await message.reply(f"Successfully unbanned ! Sudhrr ja babu {k.mention}")
|
||||
await message.reply(f"Successfully unbanned user {k.mention}!!!")
|
||||
|
||||
|
||||
@app.on_message(filters.command("disablechat", COMMAND_HANDLER) & filters.user(SUDO))
|
||||
|
|
|
|||
Loading…
Reference in a new issue