mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 12:59:34 +01:00
use sandbox module for running untrusted code because it has a timeout
This commit is contained in:
parent
bc4dfb0003
commit
af7d8c58d1
@ -1,9 +1,8 @@
|
|||||||
var vm = require('vm');
|
var vm = require('vm');
|
||||||
var sandbox = require('sandbox');
|
var s = require('sandbox');
|
||||||
|
|
||||||
var js = function(dbot) {
|
var js = function(dbot) {
|
||||||
var dbot = dbot;
|
var dbot = dbot;
|
||||||
var s = new Sandbox();
|
|
||||||
|
|
||||||
var commands = {
|
var commands = {
|
||||||
'~js': function(data, params) {
|
'~js': function(data, params) {
|
||||||
|
Loading…
Reference in New Issue
Block a user