Skip to content
This repository was archived by the owner on Nov 29, 2022. It is now read-only.

Commit a35ca9e

Browse files
committed
Change bot status to 'watching survivors' instead of 'game'
1 parent 0122475 commit a35ca9e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pzbot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,10 @@ async def status_task():
376376
if _serverUp:
377377
playercount = await pzplayers()
378378
print(playercount)
379-
await bot.change_presence(activity=discord.Game(name=f"{playercount} survivors online"))
379+
380+
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=f"{playercount} survivors online"))
380381
else:
381-
await bot.change_presence(activity=discord.Game(name=f"Server offline"))
382+
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=f"Server offline"))
382383
await asyncio.sleep(20)
383384

384385
@bot.event

0 commit comments

Comments
 (0)