test
This commit is contained in:
parent
015d7e0102
commit
bb993a449a
@ -15,10 +15,9 @@ module.exports = (lib) => {
|
|||||||
active: 1,
|
active: 1,
|
||||||
func: (e) => {
|
func: (e) => {
|
||||||
var args = e.message.match(/^\!bot (.*)/i)[1];
|
var args = e.message.match(/^\!bot (.*)/i)[1];
|
||||||
e.reply(args);
|
|
||||||
sandbox.e = e;
|
sandbox.e = e;
|
||||||
|
|
||||||
vm.runInNewContext(args, sandbox);
|
vm.runInNewContext('this.output = '+args, sandbox);
|
||||||
|
|
||||||
e.reply(util.inspect(sandbox.output));
|
e.reply(util.inspect(sandbox.output));
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user