3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00
This commit is contained in:
Luke Slater 2011-10-12 16:42:19 +01:00
parent 6cd6b3e41a
commit ab03d5bfca

10
modules/js.js Normal file
View 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));
}
};
}