improved .afk no gpt :OOOOOO
This commit is contained in:
parent
1a9863dc5e
commit
c5c0fcf187
|
@ -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)
|
Loading…
Reference in a new issue