mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
js
This commit is contained in:
parent
b40845e93d
commit
bbee3f4147
@ -4,7 +4,6 @@ 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]);
|
|
||||||
dbot.say(data.channel, eval(q[1]));
|
dbot.say(data.channel, eval(q[1]));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user