3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-24 04:49:25 +01:00

add sam to dram acces

This commit is contained in:
Luke Slater 2012-02-14 19:00:12 +00:00
parent 8d681ad29b
commit d98c1657dc

View File

@ -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(' ');