Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Commit 0b1b773

Browse files
committed
Update approve.py
1 parent b49e030 commit 0b1b773

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

YukkiMusic/plugins/techzbots/approve.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,27 @@ async def userunapprove(client, message: Message, _):
6969
user = user.replace("@", "")
7070
user = await app.get_users(user)
7171
if await is_approved(user.id):
72-
return await message.reply_text("{} is not approved")
72+
return await message.reply_text("{} is not approved".format(
73+
message.from_user.mention
74+
))
7375
removed = await remove_approved_user(user.id)
7476
if removed:
75-
await message.reply_text("Removed **{0}** to From Approved Users")
77+
await message.reply_text("Removed **{0}** to From Approved Users".format(
78+
message.from_user.mention
79+
))
7680
return
7781
await message.reply_text(f"Something wrong happened.")
7882
return
7983
user_id = message.reply_to_message.from_user.id
8084
if await is_approved(user_id):
81-
return await message.reply_text("{} is not approved")
85+
return await message.reply_text("{} is not approved".format(
86+
message.reply_to_message.from_user.mention
87+
))
8288
removed = await remove_approved_user(user_id)
8389
if removed:
84-
await message.reply_text("Removed **{0}** to From Approved Users")
90+
await message.reply_text("Removed **{0}** to From Approved Users".format(
91+
message.reply_to_message.from_user.mention
92+
))
8593
return
8694
await message.reply_text(f"Something wrong happened.")
8795

0 commit comments

Comments
 (0)