mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 19:52:36 +01:00
add sam to dram acces
This commit is contained in:
parent
8d681ad29b
commit
d98c1657dc
@ -26,7 +26,7 @@ var drama = function(dbot) {
|
||||
|
||||
var commands = {
|
||||
'~train': function(data, params) {
|
||||
if(data.user == dbot.admin || data.user == 'golem') {
|
||||
if(data.user == dbot.admin || data.user == 'golem' || data.user == 'Sam') {
|
||||
bayes.train(last[params[1]][params[2]], params[3]);
|
||||
dbot.say(data.channel, 'Last thing ' + params[2] + ' said in ' +
|
||||
params[1] + ' (' + last[params[1]][params[2]] + ') classified as \'' + params[3] + '\'');
|
||||
@ -34,7 +34,7 @@ var drama = function(dbot) {
|
||||
},
|
||||
|
||||
'~rtrain': function(data, params) {
|
||||
if(data.user == dbot.admin || data.user == 'golem') {
|
||||
if(data.user == dbot.admin || data.user == 'golem' || data.user == 'Sam') {
|
||||
var category = params[1];
|
||||
params.splice(0, 2);
|
||||
var msg = params.join(' ');
|
||||
|
Loading…
Reference in New Issue
Block a user