Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down