mirror of
https://github.com/reality/dbot.git
synced 2025-02-17 14:01:04 +01:00
use sandbox module for running untrusted code because it has a timeout
This commit is contained in:
parent
33ec196a7d
commit
bc4dfb0003
@ -3,7 +3,7 @@ var sandbox = require('sandbox');
|
|||||||
|
|
||||||
var js = function(dbot) {
|
var js = function(dbot) {
|
||||||
var dbot = dbot;
|
var dbot = dbot;
|
||||||
var s = sandbox.Sandbox();
|
var s = new Sandbox();
|
||||||
|
|
||||||
var commands = {
|
var commands = {
|
||||||
'~js': function(data, params) {
|
'~js': function(data, params) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user