This commit is contained in:
Flummi committed 2016-10-29 05:38:21 +02:00
1 parent 015d7e0102
commit bb993a449a
1 file changed
+1 -2
+1 -2
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));
},