admin 'act' command, and fix to action syntax.

This commit is contained in:
Psychedelic Squid 2012-03-09 21:44:05 +00:00
parent 6444494293
commit 678a2ed9be
2 changed files with 16 additions and 2 deletions

View File

@ -24,11 +24,25 @@ var adminCommands = function(dbot) {
}, },
'say': function(data, params) { 'say': function(data, params) {
if (params[1] === "@") {
var c = data.channel;
} else {
var c = params[1]; var c = params[1];
}
var m = params.slice(2).join(' '); var m = params.slice(2).join(' ');
dbot.say(c, m); dbot.say(c, m);
}, },
'act': function(data, params) {
if (params[1] === "@") {
var c = data.channel;
} else {
var c = params[1];
}
var m = params.slice(2).join(' ');
dbot.act(c, m);
},
'load': function(data, params) { 'load': function(data, params) {
dbot.moduleNames.push(params[1]); dbot.moduleNames.push(params[1]);
dbot.reloadModules(); dbot.reloadModules();