From c4361d5f9fb4f488e021923b7951965deae3257a Mon Sep 17 00:00:00 2001 From: RossAscends <124905043+RossAscends@users.noreply.github.com> Date: Fri, 12 May 2023 17:38:37 +0900 Subject: [PATCH] clarify /help text for /bg command --- public/scripts/slash-commands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 44bd54758..c63357074 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -73,8 +73,8 @@ const parser = new SlashCommandParser(); const registerSlashCommand = parser.addCommand.bind(parser); const getSlashCommandsHelp = parser.getHelpString.bind(parser); -parser.addCommand('help', helpCommandCallback, ['?'], ' – displays a help information', true, true); -parser.addCommand('bg', setBackgroundCallback, ['background'], 'name – sets a background by file name', false, true); +parser.addCommand('help', helpCommandCallback, ['?'], ' – displays this help message', true, true); +parser.addCommand('bg', setBackgroundCallback, ['background'], '(filename) – sets a background according to filename, partial names allowed, will set the first one alphebetically if multiple files begin with the provided argument string', false, true); function helpCommandCallback() { sendSystemMessage(system_message_types.HELP); @@ -86,7 +86,7 @@ function setBackgroundCallback(_, bg) { } console.log('Set background to ' + bg); const bgElement = $(`.bg_example[bgfile^="${bg.trim()}"`); - + if (bgElement.length) { bgElement.get(0).click(); }