forked from GitHub/dbot
js
This commit is contained in:
parent
bbee3f4147
commit
0c552f4e28
@ -3,7 +3,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);
|
||||||
dbot.say(data.channel, eval(q[1]));
|
dbot.say(data.channel, eval(q[1]));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user