forked from GitHub/dbot
qadd reality ban
This commit is contained in:
parent
b76f3ff70c
commit
a450d357d1
@ -4,7 +4,7 @@ var js = function(dbot) {
|
|||||||
var commands = {
|
var commands = {
|
||||||
'~js': function(data, params) {
|
'~js': function(data, params) {
|
||||||
var q = data.message.valMatch(/^~js ([\d\w\s]*)/, 2);
|
var q = data.message.valMatch(/^~js ([\d\w\s]*)/, 2);
|
||||||
console.log(q[1]);
|
console.log(q);
|
||||||
dbot.say(data.channel, eval(q[1]));
|
dbot.say(data.channel, eval(q[1]));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user