sort help alphabetically
This commit is contained in:
parent
ce5d6451c2
commit
c63fb8ef37
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ export default class HelpCommand extends Command {
|
|||
run(username, args) {
|
||||
const msg = this.#commands.commands
|
||||
.map(cmd => cmd.name)
|
||||
.sort((a, b) => a.localeCompare(b))
|
||||
.join(", ")
|
||||
|
||||
this.#chat.chat(msg)
|
||||
|
|
Loading…
Add table
Reference in a new issue