improved .afk no gpt :OOOOOO

This commit is contained in:
Glitchy 2025-05-09 18:39:19 +00:00
parent 1a9863dc5e
commit c5c0fcf187

View file

@ -32,7 +32,16 @@ class AfkCommands:
except Exception as e:
raise RuntimeWarning from e
messaged_users_string = ""
for i in self.bot.AFK_NOTIFIED_USERS:
try:
user = await self.bot.fetch_user(i)
if user:
messaged_users_string += f"\n\\- {user.id} | {user.name}"
except Exception as e:
raise RuntimeWarning from e
await message.reply(f"should work, here are the people who dmed you:" + (messaged_users_string if messaged_users_string else "\nnobody because you're alone asf obvs"))
self.bot.AFK_NOTIFIED_USERS.clear()
await message.reply("should work")
else:
await message.reply("You are not in AFK mode.", silent=True)