My AFK command works great except for the fact that I can only use one word reasons. Example, I would say -afk walking the dog. Whenever someone pings me in the discord server that I went AFK in it would only say (user) if afk. Reason: Walking. I'm trying to figure out how to make it say multiple words instead of just one. Here is some of my afk command
@client.event async def on_message(message): global afkdict if message.author in afkdict: afkdict.pop(message.author)
for member in message.mentions:
if member != message.author:
if member in afkdict:
afkmsg = afkdict[member]
await message.channel.send(f" {member} is afk. Reason: {afkmsg}")
await client.process_commands(message)