From a5b3f90cd039ad0de7f8ad20110c6379e7ab1537 Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Fri, 22 Nov 2024 13:21:20 -0500 Subject: [PATCH] Fix plural again --- bot/exts/game.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bot/exts/game.py b/bot/exts/game.py index 51719c1..70227dd 100644 --- a/bot/exts/game.py +++ b/bot/exts/game.py @@ -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."""