diff --git a/bot/exts/card.py b/bot/exts/card.py index 320718b..ef24df3 100644 --- a/bot/exts/card.py +++ b/bot/exts/card.py @@ -4,13 +4,13 @@ from asyncio import gather from collections import Counter +from collections.abc import Iterable from datetime import datetime as dt from datetime import timezone from io import BytesIO from itertools import islice from math import ceil, sqrt from re import compile as re_compile -from typing import Iterable from apscheduler.schedulers.asyncio import AsyncIOScheduler from interactions import ( diff --git a/bot/exts/game.py b/bot/exts/game.py index 51719c1..c9d43d7 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_message = "is 1 game" + else: + game_message = f"are {game_count} games" + + await ctx.send(f"There {game_message} on this server") async def update_status(self: GameExt) -> None: """Update the bots status."""