removed keywords

This commit is contained in:
mmacierzanka committed 2021-08-08 18:39:10 +02:00
1 parent b74dff1af9
commit f9c586dd14
4 files changed
+13 -71

No files matched your search

+1 -9
View File
@@ -31,8 +31,7 @@ export class HelpMessage extends Command {
if (helpMsg != null) {
if (param("command_name")) {
const cmd: Command | null = cmdManager.get(
param("command_name")?.toString() || "",
"ALL"
param("command_name")?.toString() || ""
);
if (cmd) {
helpMsg.setTitle(
@@ -66,13 +65,6 @@ export class HelpMessage extends Command {
});
helpMsg.addField("Aliases:", aList, false);
}
if (cmd.keywords && cmd.keywords.length > 0) {
let kwrdList: string = "";
cmd.keywords.map((k) => {
kwrdList += k + "\n";
});
helpMsg.addField("Keywords:", kwrdList, false);
}
} else {
throw new ReferenceError(
`Command "${param(