From b4619c2f26d44170b05a314f313d48d8b316a7d1 Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 27 May 2022 21:54:09 +0200 Subject: [PATCH] troll the Berg --- bot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bot.py b/bot.py index c7003a0..fc55318 100644 --- a/bot.py +++ b/bot.py @@ -23,6 +23,7 @@ def mid(s, offset, amount): intents = discord.Intents.default() intents.members = True intents.message_content = True +intents.presences = True token = os.environ['TOKEN'] prefix = os.environ['PREFIX'] @@ -76,11 +77,10 @@ async def on_ready(): #activity = discord.Game('%shelp for Help' % prefix) await bot.change_presence(status=discord.Status.online, activity=activity) -#@bot.event -#async def on_message(message): -# if message.author.id == 274197471515639808: -# await message.add_reaction(bot.get_emoji(844264772110909501)) -# await message.add_reaction(bot.get_emoji(950386969614110770)) +@bot.listen() +async def on_presence_update(before, after): + if not before.is_on_mobile() and after.id == 274197471515639808 and after.is_on_mobile(): + await bot.get_channel(512004326382632961).send("https://cdn.discordapp.com/attachments/512004326382632961/979468921985982514/unknown.png") class Confirm(discord.ui.View): def __init__(self):