mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 20:22:39 +01:00
add golem to train
This commit is contained in:
parent
5037779070
commit
8d681ad29b
@ -26,10 +26,10 @@ var drama = function(dbot) {
|
|||||||
|
|
||||||
var commands = {
|
var commands = {
|
||||||
'~train': function(data, params) {
|
'~train': function(data, params) {
|
||||||
if(data.user == dbot.admin) {
|
if(data.user == dbot.admin || data.user == 'golem') {
|
||||||
bayes.train(last[params[1]][params[2]], params[3]);
|
bayes.train(last[params[1]][params[2]], params[3]);
|
||||||
dbot.say(data.channel, 'Last thing ' + params[2] + ' said in ' +
|
dbot.say(data.channel, 'Last thing ' + params[2] + ' said in ' +
|
||||||
params[1] + ' classified as \'' + params[3] + '\'');
|
params[1] + ' (' + last[params[1]][params[2]] + ') classified as \'' + params[3] + '\'');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user