mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
js
This commit is contained in:
parent
6cd6b3e41a
commit
ab03d5bfca
10
modules/js.js
Normal file
10
modules/js.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
var js = function(dbot) {
|
||||||
|
var dbot = dbot;
|
||||||
|
|
||||||
|
var commands = {
|
||||||
|
'~js': function(data, params) {
|
||||||
|
var q = data.message.valMatch(/^~q ([\d\w\s]*)/, 2);
|
||||||
|
dbot.say(data.channel, eval(q));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user