{"size": 631, "ext": "js", "max_stars_repo_path": "responses/acronyms.js", "max_stars_repo_name": "AwfulPirate/CajonBot", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "responses/acronyms.js", "max_issues_repo_name": "AwfulPirate/CajonBot", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "responses/acronyms.js", "max_forks_repo_name": "AwfulPirate/CajonBot", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 33.2105263158, "max_line_length": 65, "alphanum_fraction": 0.442155309}
module.exports = {
    command: function(bot, msg) {
        var acronym = require('acronym');
        var phrases = ['!ac', '!acronym', '!acromyn'];
        if (msg.author.bot === false) {
            var wordsArr = msg.content.split(' ');
            wordsArr.map(function(word, index) {
                phrases.map(function(phrase) {
                    if (word.toLowerCase() === phrase) {
                        var message = acronym(wordsArr[index+1]);
                        msg.channel.send(message);
                    }
                });
            });
        }
    },
    help: '`!acronym` test or `!ac` test'
};
