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