mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
admin 'act' command, and fix to action syntax.
This commit is contained in:
parent
6444494293
commit
678a2ed9be
@ -24,11 +24,25 @@ var adminCommands = function(dbot) {
|
||||
},
|
||||
|
||||
'say': function(data, params) {
|
||||
if (params[1] === "@") {
|
||||
var c = data.channel;
|
||||
} else {
|
||||
var c = params[1];
|
||||
}
|
||||
var m = params.slice(2).join(' ');
|
||||
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) {
|
||||
dbot.moduleNames.push(params[1]);
|
||||
dbot.reloadModules();
|
||||
|
Loading…
Reference in New Issue
Block a user