3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 19:52:36 +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:18:01 +00:00
parent bc4dfb0003
commit af7d8c58d1

View File

@ -1,9 +1,8 @@
var vm = require('vm');
var sandbox = require('sandbox');
var s = require('sandbox');
var js = function(dbot) {
var dbot = dbot;
var s = new Sandbox();
var commands = {
'~js': function(data, params) {