diff --git a/main.py b/main.py index 027a9b26..e00264db 100644 --- a/main.py +++ b/main.py @@ -117,6 +117,12 @@ async def on_message(ctx): if z in str(ctx.author.id): pass else: items[str(ctx.author.id)][str(z)] = 0 save() + uList = list() + for x in user_presence[str(ctx.guild.id)].keys(): uList.append(x) + for i in uList: + if i in ctx.content and not ctx.author.bot: + fetch_user = client.get_user(id(i)) + await ctx.channel.send(f"{fetch_user.display_name} went AFK : {user_presence[str(ctx.guild.id)][str(i)]['response']}") if str(ctx.author.id) in user_presence[str(ctx.guild.id)]: del user_presence[str(ctx.guild.id)][str(ctx.author.id)] save()