This commit is contained in:
Flummi 2016-10-29 05:38:21 +02:00
parent 015d7e0102
commit bb993a449a

View File

@ -15,10 +15,9 @@ module.exports = (lib) => {
active: 1,
func: (e) => {
var args = e.message.match(/^\!bot (.*)/i)[1];
e.reply(args);
sandbox.e = e;
vm.runInNewContext(args, sandbox);
vm.runInNewContext('this.output = '+args, sandbox);
e.reply(util.inspect(sandbox.output));
},