mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 19:14:51 +00:00
Fix
This commit is contained in:
parent
47ce746635
commit
1891e9f80f
1 changed files with 2 additions and 2 deletions
|
|
@ -88,10 +88,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:
|
||||||
isban, alesan = await db.get_ban_status(k.id)
|
isban = await db.get_ban_status(k.id)
|
||||||
if isban:
|
if isban:
|
||||||
return await message.reply(
|
return await message.reply(
|
||||||
f"{k.mention} is already banned\n<b>Reason:</b> {alesan['reason']}"
|
f"{k.mention} is already banned\n<b>Reason:</b> {reason}"
|
||||||
)
|
)
|
||||||
await db.ban_user(k.id, reason)
|
await db.ban_user(k.id, reason)
|
||||||
await message.reply(
|
await message.reply(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue