From bafc63c9363777624a75aed5822d4934e3cce61c Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Fri, 9 Aug 2024 00:16:51 +0100 Subject: [PATCH] Set a default group size of 3 --- matchy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matchy.py b/matchy.py index 40dc7b2..6c03294 100755 --- a/matchy.py +++ b/matchy.py @@ -46,8 +46,10 @@ async def sync(ctx: discord.ext.commands.context.Context): @bot.tree.command(description = "Match matchees into groups", guilds = list(g for g in guilds if g.id in config.SERVERS)) @app_commands.describe(per_group = "Matchees per group") -async def match(interaction: discord.Interaction, per_group: int = 3): +async def match(interaction: discord.Interaction, per_group: int = None): """Match groups of channel members""" + if not per_group: + per_group = 3 logger.info(f"User {interaction.user} requested /match {per_group}")