Skip to content

Commit

Permalink
Add plural
Browse files Browse the repository at this point in the history
  • Loading branch information
zunda-arrow committed Nov 18, 2024
1 parent e75d2ff commit 6ad473e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bot/exts/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,14 @@ async def update_status(self: GameExt) -> None:
for server in self.manager.servers:
game_count += await server.get_game_count()

if (game_count == 1):
game_word = "game"
else:
game_word = "games"

await self.client.change_presence(
activity=Activity(
f"{game_count} games",
f"{game_count} {game_word}",
ActivityType.WATCHING,
self.manager.servers[0].server_url,
)
Expand Down

0 comments on commit 6ad473e

Please sign in to comment.