1
Fork 0
mirror of https://github.com/RGBCube/minearchy-bot synced 2025-07-28 09:27:44 +00:00
This commit is contained in:
RGBCube 2022-12-17 15:18:49 +03:00
parent f1af800e10
commit 957c9a551b

View file

@ -67,12 +67,10 @@ class Miscellaneous(
@Cog.listener() @Cog.listener()
async def on_message(self, message: Message) -> None: async def on_message(self, message: Message) -> None:
name = message.author.display_name if not message.author.display_name.lower().startswith("[AFK]"):
if not name.lower().startswith("[AFK]"):
return 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.") await message.channel.send(f"Welcome back {escape_markdown(message.author.mention)}! I've unset your AFK status.")
@command( @command(