wop commited on
Commit
d6bf2a5
1 Parent(s): abe125b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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):