This commit is contained in:
Flummi 2016-10-29 05:43:52 +02:00
parent bb993a449a
commit ede3faae10

View File

@ -4,7 +4,7 @@ const vm = require('vm');
module.exports = (lib) => {
var sandbox = {
bot: lib.bot,
output: "nothing",
output: undefined,
e: null
};
@ -19,7 +19,9 @@ module.exports = (lib) => {
vm.runInNewContext('this.output = '+args, sandbox);
e.reply(util.inspect(sandbox.output));
var output = util.inspect(sandbox.output);
if(output !== undefined)
e.reply(output);
},
desc: 'bot debug'
});