From 36b27d26179d8aa3dc8ed53979c43b9d48583dfa Mon Sep 17 00:00:00 2001 From: Nexachromic <126310207+Nexachromic@users.noreply.github.com> Date: Sun, 26 Feb 2023 18:24:54 +0530 Subject: [PATCH] Presences Added presences to Project Glow... Please merge with main branch :D --- main.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/main.py b/main.py index 3505bbf..3bca7e6 100644 --- a/main.py +++ b/main.py @@ -78,6 +78,24 @@ def apiReq(id, responseMSG): return data +@client.event +async def on_ready(): + print(f'{bot.user} Poggers') + + # Start the loop to change the presence every 10 seconds + change_presence.start() + +@tasks.loop(seconds=10) +async def change_presence(): + presences = [ + 'with Glowstik', + 'Minecraft', + 'Valorant', + 'with FrameWrk', + 'https://discord.gg/glowstik' + ] + presence = discord.Activity(type=discord.ActivityType.playing, name=random.choice(presences)) + await bot.change_presence(activity=presence) @client.command() async def chat(ctx, *, responseMSG):