3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-30 16:09:27 +01:00

reporting didnt exist

This commit is contained in:
Luke Slater 2012-02-14 18:02:48 +00:00
parent 5cc3b224c2
commit 25a48177a8

View File

@ -39,11 +39,9 @@ var drama = function(dbot) {
}, },
'listener': function(data) { 'listener': function(data) {
if(reporting == true) { var category = bayes.classify(data.message, function(category) {
var category = bayes.classify(data.message, function(category) { console.log(category + '!');
console.log(category + '!'); }.bind(this));
}.bind(this));
}
if(last.hasOwnProperty(data.channel)) { if(last.hasOwnProperty(data.channel)) {
last[data.channel][data.user] = data.message; last[data.channel][data.user] = data.message;