diff --git a/commands/general/help.js b/commands/general/help.js
index a4d257e..f985a6b 100644
--- a/commands/general/help.js
+++ b/commands/general/help.js
@@ -20,19 +20,28 @@ class HelpCommand extends Command {
return { html: html }
}
if (help.categories[this.args[0].toLowerCase()]) {
+ html = `
mrmBot Help - ${htmlescape(this.args[0])}
Command | Description |
`
+ for (const [command] of collections.commands) {
+ if (collections.info.get(command).category != this.args[0].toLowerCase()) continue;
+ const description = collections.info.get(command).description;
+ html = html + `${command} | ${description} |
`
+ }
+ html = html + "
"
+ return { html: html }
}
}
- html = `mrmBot Help
Command | Description |
`
- for (const [command] of collections.commands) {
- const description = collections.info.get(command).description;
- html = html + `${command} | ${description} |
`
+ const prefix = htmlescape(process.env.PREFIX);
+ html = `mrmBot Help - Categories
Category | Command |
`
+ for (const category of Object.keys(help.categories)) {
+ html = html + `${category} | ${prefix}help ${category} |
`
}
html = html + "
"
+
return { html: html }
// return { html: "There are no mrmBot Docs Yet
In the meantime, please refer to https://esmbot.net/help.html" };
}
-
+ static category = "general"
static description = "Gets a list of commands";
static aliases = ["commands"];
static arguments = ["{command}"];