mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
classify
This commit is contained in:
parent
4aed2a700c
commit
a9af977f9d
@ -42,13 +42,14 @@ var drama = function(dbot) {
|
||||
dbot.say(data.channel, '\'' + msg + '\' classified as \'' + category + '\'');
|
||||
},
|
||||
|
||||
'~classify': function(data, params) {
|
||||
params.splice(0, 1);
|
||||
var msg = params.join(' ');
|
||||
bayes.classify(msg, function(category) {
|
||||
dbot.say(data.channel, 'Classified as: ' + category + '!');
|
||||
}.bind(this));
|
||||
}
|
||||
},
|
||||
|
||||
'~classify': function(data, params) {
|
||||
params.splice(0, 1);
|
||||
var msg = params.join(' ');
|
||||
bayes.classify(msg, function(category) {
|
||||
dbot.say(data.channel, 'Classified as: ' + category + '!');
|
||||
}.bind(this));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user