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