forked from GitHub/dbot
only admin can run js
This commit is contained in:
parent
430d88e5d8
commit
d5d68fcc51
@ -4,8 +4,10 @@ var js = function(dbot) {
|
||||
var commands = {
|
||||
'~js': function(data, params) {
|
||||
var q = data.message.valMatch(/^~js (.*)/, 2);
|
||||
if(data.user == dbot.admin) {
|
||||
dbot.say(data.channel, eval(q[1]));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user