mirror of
https://github.com/RGBCube/minearchy-bot
synced 2025-07-28 09:27:44 +00:00
WTF??
This commit is contained in:
parent
f1af800e10
commit
957c9a551b
1 changed files with 2 additions and 4 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue