test
This commit is contained in:
parent
bb993a449a
commit
ede3faae10
@ -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'
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user