From 20b4d9204694da128ff530f4c564e824e691774c Mon Sep 17 00:00:00 2001 From: Henry <31442053+HenrySpartGlobal@users.noreply.github.com> Date: Tue, 30 Jul 2024 18:44:57 +0100 Subject: [PATCH] feat: clean up queue command (#112) * feat: clean up queue command * fix: add optional queue_channel to add/remove commands --- src/data/commands.ts | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/data/commands.ts b/src/data/commands.ts index c705795..b1d446a 100644 --- a/src/data/commands.ts +++ b/src/data/commands.ts @@ -354,6 +354,17 @@ const commands = [ "/defaults send_ready_up_dm True" ] }, + { + "name": "defaults clean_up_queue", + "type": "Admin", + "description": "Specify if to automatically delete Queues when a game has ended", + "usage": [ + "/defaults clean_up_queue [condition]" + ], + "examples": [ + "/defaults clean_up_queue True" + ] + }, { "name": "captain queue", "type": "Admin", @@ -755,7 +766,7 @@ const commands = [ "type": "Admin", "description": "Add a specified number of wins to a user.", "usage": [ - "/user add_win [member] [amount] [game]" + "/user add_win [member] [amount] [game] (queue_channel)" ], "examples": [ "/user add_win @player 5 League Of Legends" @@ -766,7 +777,7 @@ const commands = [ "type": "Admin", "description": "Add a specified number of losses to a user.", "usage": [ - "/user add_loss [member] [amount] [game]" + "/user add_loss [member] [amount] [game] (queue_channel)" ], "examples": [ "/user add_loss @player 5 League Of Legends" @@ -777,7 +788,7 @@ const commands = [ "type": "Admin", "description": "Remove a specified number of wins from a user.", "usage": [ - "/user remove_win [member] [amount] [game]" + "/user remove_win [member] [amount] [game] (queue_channel)" ], "examples": [ "/user remove_win @player 5 League Of Legends" @@ -788,7 +799,7 @@ const commands = [ "type": "Admin", "description": "Remove a specified number of losses from a user.", "usage": [ - "/user remove_loss [member] [amount] [game]" + "/user remove_loss [member] [amount] [game] (queue_channel)" ], "examples": [ "/user remove_loss @player 5 League Of Legends"