lib/commands.js
function cmdHelp(command) {
        let ext = '';
        if (command.args && command.args.length > 0) {
            ext = command.args.join(' ');
        }
        if (ext && helpTopics[ext]) {
            const txt = `Help topic for \`${ext}\`\n\n${helpTopics[ext]}` +
                '\n\nIssue the `help` command without any parameters to see all available commands';
            command.reply(txt);

        } else {
            const help = `${getCommandHelps()}\n\n\\* Help topic available.\n\nIssue the \`help\` command with an ` +
                'available help topic as a parameter to read additonal help';
            command.reply(help);
        }
        return Promise.resolve();
    }
function cmdHelp(command) {
        let ext = '';
        if (command.args && command.args.length > 0) {
            ext = command.args.join(' ');
        }
        if (ext && helpTopics[ext]) {
            const txt = `Help topic for \`${ext}\`\n\n${helpTopics[ext]}` +
                '\n\nIssue the `help` command without any parameters to see all available commands';
            command.reply(txt);

        } else {
            const help = `${getCommandHelps()}\n\n\\* Help topic available.\n\nIssue the \`help\` command with an ` +
                'available help topic as a parameter to read additonal help';
            command.reply(help);
        }
        return Promise.resolve();
    }
function cmdHelp ( command ) { let ext = '' ; if ( command . args && command . args . length > 0 ) { ext = command . args . join ( ' ' ) ; } if ( ext && helpTopics [ ext ] ) { const txt = ` \` ${ ext } \` \n \n ${ helpTopics [ ext ] } ` + '\n\nIssue the `help` command without any parameters to see all available commands' ; command . reply ( txt ) ; } else { const help = ` ${ getCommandHelps ( ) } \n \n \\ \n \n \` \` ` + 'available help topic as a parameter to read additonal help' ; command . reply ( help ) ; } return Promise . resolve ( ) ; }
Reply with help to the command !help

@private

@param {command} command help command
@returns {Promise} Resolves after help text is generated
Reply with help to the command !help