This commit is contained in:
Luke Slater 2012-02-15 21:00:31 +00:00
parent f3e31925af
commit e608491360

View File

@ -40,6 +40,12 @@ var drama = function(dbot) {
var msg = params.join(' ');
bayes.train(msg, category);
dbot.say(data.channel, '\'' + msg + '\' classified as \'' + category + '\'');
},
'~classify': function() {
bayes.classify(data.message, function(category) {
dbot.say(data.channel, 'Classified as: ' + category + '!');
}.bind(this));
}
}
}