Skip to content

Commit

Permalink
Fix plural again
Browse files Browse the repository at this point in the history
  • Loading branch information
zunda-arrow committed Nov 22, 2024
1 parent 6ad473e commit a5b3f90
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bot/exts/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,14 @@ async def count(self: GameExt, ctx: ComponentContext) -> None:
"""Get the number of games being played on this server."""
server: Server = self.manager.get_server(ctx.guild_id)

await ctx.send(f"There are {await server.get_game_count()} games on this server")
game_count = await server.get_game_count()

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

await ctx.send(f"There are {game_count} {game_word} games on this server")

async def update_status(self: GameExt) -> None:
"""Update the bots status."""
Expand Down

0 comments on commit a5b3f90

Please sign in to comment.