From: Georgios Atheridis Date: Wed, 11 May 2022 00:54:14 +0000 (+0000) Subject: changed wording X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=e06424b60f09f38835cef7ce979e9829164ec9d9;p=ihaspeks%2Faptbot-ihaspeks.git changed wording --- diff --git a/skgyorugo/commands/newteams.py b/skgyorugo/commands/newteams.py index 6d5b0ff..7c44908 100644 --- a/skgyorugo/commands/newteams.py +++ b/skgyorugo/commands/newteams.py @@ -74,6 +74,13 @@ def main(bot: Bot, message: Message): reply=message.tags["id"], ) + if len(queue_users) < queue_size: + bot.send_privmsg( + message.channel, + f"There aren't enough people in the queue. Current team size is {queue_size} while there are only {len(queue_users)} in queue.", + reply=message.tags["id"], + ) + queue_users: list[ttv_api.users.User] = queue_users[:queue_size] random.shuffle(queue_users) blue_team: list[ttv_api.users.User] = queue_users[: queue_size // 2] diff --git a/skgyorugo/commands/teamsize.py b/skgyorugo/commands/teamsize.py index cca3cf1..02f7535 100644 --- a/skgyorugo/commands/teamsize.py +++ b/skgyorugo/commands/teamsize.py @@ -16,7 +16,7 @@ logger.addHandler(file_handler) PERMISSION = 10 PREFIX = "\\" -DESCRIPTION = r"Change the queue size" +DESCRIPTION = r"Change the team size" USER_COOLDOWN = 0 GLOBAL_COOLDOWN = 0 @@ -53,7 +53,7 @@ def main(bot: Bot, message: Message): bot.send_privmsg( message.channel, - f"Successfully changed queue size to {queue_size}.", + f"Successfully changed team size to {queue_size}.", reply=message.tags["id"], )