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]
PERMISSION = 10
PREFIX = "\\"
-DESCRIPTION = r"Change the queue size"
+DESCRIPTION = r"Change the team size"
USER_COOLDOWN = 0
GLOBAL_COOLDOWN = 0
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"],
)