help.js
399 Bytes
"use strict";
const commands = require('../command-group');
const cmds = [];
for (let [key, value] of Object.entries(commands)) {
if (value.indexOf('_') !== 0) cmds.push(key.toUpperCase());
}
cmds.sort();
const msg = 'Perintah tersedia: ' + cmds.join(', ') + '.'
module.exports = function(cb) {
const responseParams = {
body: msg
}
cb(null, null, responseParams);
}