diff --git a/modules/js.js b/modules/js.js new file mode 100644 index 0000000..3aaeb14 --- /dev/null +++ b/modules/js.js @@ -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)); + } + }; +}