improve the way activity is changed
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s

should fix issues with not updating correctly
This commit is contained in:
Corban-Lee Jones 2024-12-06 16:57:46 +00:00
parent 78d2c7a850
commit c302b54eae

View File

@ -36,7 +36,7 @@ class ActivityCog(commands.Cog):
return
players_count = int(re_match.group(1))
self.bot.activity = Game(name=f"with {players_count} survivor{'s' if players_count != 1 else ''}!")
self.bot.change_presence(activity=Game(name=f"with {players_count} survivor{'s' if players_count != 1 else ''}!"))
log.debug("player count in activity updated to: %s", players_count)