3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-26 04:32:37 +01:00

use sandbox module for running untrusted code because it has a timeout

This commit is contained in:
Luke Slater 2012-02-13 20:13:26 +00:00
parent 9b1fd7aa4e
commit eab3b30805

View File

@ -3,7 +3,7 @@ var sandbox = require('sandbox');
var js = function(dbot) { var js = function(dbot) {
var dbot = dbot; var dbot = dbot;
var s = new Sandbox(); var s = new sandbox.Sandbox();
var commands = { var commands = {
'~js': function(data, params) { '~js': function(data, params) {