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