mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
js
This commit is contained in:
parent
7e78402c01
commit
e0fdebe6df
@ -4,7 +4,7 @@ var js = function(dbot) {
|
||||
var commands = {
|
||||
'~js': function(data, params) {
|
||||
var q = data.message.valMatch(/^~js ([\d\w\s]*)/, 2);
|
||||
dbot.say(data.channel, eval(q));
|
||||
dbot.say(data.channel, eval(q[1]));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user