Set a default group size of 3
This commit is contained in:
parent
4543d57d26
commit
bafc63c936
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
@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")
|
@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"""
|
"""Match groups of channel members"""
|
||||||
|
if not per_group:
|
||||||
|
per_group = 3
|
||||||
|
|
||||||
logger.info(f"User {interaction.user} requested /match {per_group}")
|
logger.info(f"User {interaction.user} requested /match {per_group}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue