All files documentation.js

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23          1x                     1x            
/**
 * Have butlerbot provide a link to the landing page.
 * @module documentation
 * @return {string} - string (as a message to discord text channel)
 */
module.exports = {
    name: 'documentation',
    description: 'Link to website for butlerbot.',
    aliases: ['doc', 'credentials', 'resume'],
    cooldown: 5,
    /**
     * @method execute
     * @param {string} message - command, used to determine which channel to return results
     * @return {string} message with link to landing page.
     */      
    execute(message) {
        message.channel.send(
            `Of course, master ${message.author}. \nMore information about my resume can be found here:\nhttps://petewein.github.io/butlerbot/\n` +
            `If you are interested in the documentation, please go to:\n https://petewein.github.io/butlerbot/documentation/index.html`
        );
    },
};