mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-10 05:24:52 +00:00
typo
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
parent
2782df412a
commit
38c007c624
1 changed files with 4 additions and 3 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
from curses.ascii import isblank
|
||||||
from pyrogram import Client, filters
|
from pyrogram import Client, filters
|
||||||
from pyrogram.errors import ChannelPrivate, PeerIdInvalid
|
from pyrogram.errors import ChannelPrivate, PeerIdInvalid
|
||||||
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, Message
|
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, Message
|
||||||
|
|
@ -86,10 +87,10 @@ async def ban_a_user(bot, message):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return await message.reply(f"Error - {e}")
|
return await message.reply(f"Error - {e}")
|
||||||
else:
|
else:
|
||||||
jar = await db.get_ban_status(k.id)
|
isban, alesan = await db.get_ban_status(k.id)
|
||||||
if jar["is_banned"]:
|
if isban:
|
||||||
return await message.reply(
|
return await message.reply(
|
||||||
f"{k.mention} is already banned\nReason: {jar['ban_reason']}"
|
f"{k.mention} is already banned\nReason: {alesan['reason']}"
|
||||||
)
|
)
|
||||||
await db.ban_user(k.id, reason)
|
await db.ban_user(k.id, reason)
|
||||||
await message.reply(f"Successfully banned user {k.mention}!! Reason: {reason}")
|
await message.reply(f"Successfully banned user {k.mention}!! Reason: {reason}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue