From 957c9a551b95318f06171167737220ebe2764824 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sat, 17 Dec 2022 15:18:49 +0300 Subject: [PATCH] WTF?? --- minearchy_bot/cogs/misc.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/minearchy_bot/cogs/misc.py b/minearchy_bot/cogs/misc.py index c5ff455..c129f74 100644 --- a/minearchy_bot/cogs/misc.py +++ b/minearchy_bot/cogs/misc.py @@ -67,12 +67,10 @@ class Miscellaneous( @Cog.listener() async def on_message(self, message: Message) -> None: - name = message.author.display_name - - if not name.lower().startswith("[AFK]"): + if not message.author.display_name.lower().startswith("[AFK]"): return - await message.author.edit(nick=name[5:]) + await message.author.edit(nick=message.author.display_name[5:]) await message.channel.send(f"Welcome back {escape_markdown(message.author.mention)}! I've unset your AFK status.") @command(