diff --git a/lib/command-handler/help.js b/lib/command-handler/help.js index 7fc1231..cf86719 100644 --- a/lib/command-handler/help.js +++ b/lib/command-handler/help.js @@ -2,8 +2,8 @@ const commands = require('../command-group'); const cmds = []; -for (let [key] of Object.entries(commands)) { - cmds.push(key.toUpperCase()); +for (let [key, value] of Object.entries(commands)) { + if (value.indexOf('_') !== 0) cmds.push(key.toUpperCase()); } cmds.sort(); const msg = 'Perintah tersedia: ' + cmds.join(', ') + '.'