Skip to content

Commit

Permalink
improved sidebar message
Browse files Browse the repository at this point in the history
  • Loading branch information
ansxor committed Dec 25, 2024
1 parent 4cc2b4b commit 4847b29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Views/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4847b29

Please sign in to comment.