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:
parent
5cc3b224c2
commit
25a48177a8
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user