<commit_before>var request = require('request');

module.exports = {listeners: [
{
    type: "equals",
    query: ".cat",
    callback: function(reply, message){
        request("http://catfacts-api.appspot.com/api/facts?number=1", function(err, res, body){
            try{
                var obj = JSON.parse(body);
                if(obj && obj.facts && obj.facts[0])
                    reply(obj.facts[0]);
            }catch(e){}
        });
    }
}
]};<commit_msg>Switched Cat Facts over to catfact.ninja<commit_after>var request = require('request');

module.exports = {listeners: [
{
    type: "equals",
    query: ".cat",
    callback: function(reply, message){
        request("http://catfact.ninja/fact", function(err, res, body){
            try{
                var obj = JSON.parse(body);
                if(obj && obj.fact)
                    return reply(obj.fact);
            }catch(e){}

			reply("Sorry, no cat facts for you today :'(");
        });
    }
}
]};
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.003048780487804878, 'mean_word_length': 2.0030487804878048, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7515395', 'n_tokens_mistral': 315, 'n_tokens_neox': 297, 'n_words': 62}