var stock = require('stock');
var bot = new stock();
var _ = require('underscore')
bot.mainLoop = function() {
bot.client.getRecommendations(10, function(error, data){
_.chain(data.results)
.pluck('_id')
.each(function(id) {
bot.client.like(id, function(error, data) {
if (data.matched) {
bot.client.sendMessage(
id,
"All airlines stocks will skyrocket?"
);
}
});
});
});
};
bot.live();
