Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -68,6 +68,8 @@ async def update_status():
|
|
68 |
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=f"{member_count} users"))
|
69 |
# Wait for 60 seconds before updating again
|
70 |
await asyncio.sleep(60)
|
|
|
|
|
71 |
|
72 |
@bot.event
|
73 |
async def on_member_join(mb):
|
|
|
68 |
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=f"{member_count} users"))
|
69 |
# Wait for 60 seconds before updating again
|
70 |
await asyncio.sleep(60)
|
71 |
+
|
72 |
+
bot.loop.create_task(update_status())
|
73 |
|
74 |
@bot.event
|
75 |
async def on_member_join(mb):
|