From 5af5bea80564e6c20fc9a027bf8c25118a37963a Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Sun, 11 Dec 2022 23:31:12 +0100 Subject: [PATCH] nickname is now label --- modules/commands/label.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/commands/label.py b/modules/commands/label.py index c9ab761..903edd6 100644 --- a/modules/commands/label.py +++ b/modules/commands/label.py @@ -10,7 +10,7 @@ async def cmd_label(app, msg): if msg.chat.id == configGet("admin_group") or await isAnAdmin(msg.from_user.id): if len(msg.command) < 3: - await msg.reply_text("Invalid syntax:\n`/label USER NICKNAME`") + await msg.reply_text("Invalid syntax:\n`/label USER LABEL`") return target = await find_user(app, msg.command[1]) @@ -19,15 +19,15 @@ async def cmd_label(app, msg): target = HoloUser(target) - nickname = " ".join(msg.command[2:]) + label = " ".join(msg.command[2:]) - if nickname.lower() == "reset": - await target.reset_label(app, msg.chat) + if label.lower() == "reset": + await target.reset_label(msg.chat) await msg.reply_text(f"Resetting **{target.id}**'s label...", quote=should_quote(msg)) else: - await target.set_label(app, msg.chat, nickname) - await msg.reply_text(f"Setting **{target.id}**'s label to **{nickname}**...", quote=should_quote(msg)) + await target.set_label(msg.chat, label) + await msg.reply_text(f"Setting **{target.id}**'s label to **{label}**...", quote=should_quote(msg)) else: await msg.reply_text(f"User not found") \ No newline at end of file