mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
rtrain to add raw date
This commit is contained in:
parent
25a48177a8
commit
c844125355
@ -30,6 +30,15 @@ var drama = function(dbot) {
|
||||
dbot.say(data.channel, 'Last thing ' + params[2] + ' said in ' +
|
||||
params[1] + ' classified as \'' + params[3] + '\'');
|
||||
}
|
||||
},
|
||||
|
||||
'~rtrain': function(data, params) {
|
||||
if(data.user == dbot.admin) {
|
||||
params.splice(0, 2);
|
||||
var msg = params.join(' ');
|
||||
bayes.train(msg, params[1]);
|
||||
dbot.say(data.channel, '\'' + msg + '\' classified as \'' + params[1] + '\'');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user