From 4847b29a0db14445aad4c9b09b2676ae93f9212c Mon Sep 17 00:00:00 2001 From: ansxor Date: Wed, 25 Dec 2024 14:43:13 -0500 Subject: [PATCH] improved sidebar message --- src/Views/page.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Views/page.js b/src/Views/page.js index 3a0901e..e0097c2 100644 --- a/src/Views/page.js +++ b/src/Views/page.js @@ -320,18 +320,18 @@ class PageView extends BaseView { return } // let's build up a list of commands to present - let outputMessage = "" + let outputMessage = "⚙️ Commands Available:\n" resp.forEach(command => { - outputMessage += `>>>>> ${command.name}:\n` Object.entries(command.subcommands).forEach(([subname, subcommand]) => { - outputMessage += ` >> ${command.name} ` + outputMessage += `/${command.name} ` if (subname) { outputMessage += subname + " " } - outputMessage += subcommand.arguments.map(argument => `<${argument.name}>`).join(" ") + "\n" + outputMessage += subcommand.arguments.map(argument => `<${argument.name}>`).join(" ") if (subcommand['description']) { - outputMessage += subcommand.description + "\n" + outputMessage += " - " + subcommand.description } + outputMessage += "\n" }) }) Sidebar.print(outputMessage)