Commit ed78c0ab31c321d1cf8aa8ad2fb879b5ecb1eb3f

Authored by Adhidarma Hadiwinoto
1 parent 92c45cd6e5
Exists in master

Tidak tampilkan perintah yg belum diimplementasi

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

lib/command-handler/help.js
... ... @@ -2,8 +2,8 @@
2 2  
3 3 const commands = require('../command-group');
4 4 const cmds = [];
5   -for (let [key] of Object.entries(commands)) {
6   - cmds.push(key.toUpperCase());
  5 +for (let [key, value] of Object.entries(commands)) {
  6 + if (value.indexOf('_') !== 0) cmds.push(key.toUpperCase());
7 7 }
8 8 cmds.sort();
9 9 const msg = 'Perintah tersedia: ' + cmds.join(', ') + '.'