module.exports = { 'help': { desc: `Print the allowed commands.`, async function(from){ console.log('called help', from) let intro = [ 'I am a bot owned and operated by', 'wmantly ', 'You have access to the following commands:' ] await this.whisper(from, ...intro, ...this.__reduceCommands(from).map(command => `${command} -- ${this.commands[command].desc || ''}` )); } } };