mirror of
https://github.com/UniverseDevGroup/PokeBot.git
synced 2025-01-23 09:51:58 -05:00
test
This commit is contained in:
parent
95150b7cb8
commit
6212c5e975
1 changed files with 6 additions and 1 deletions
|
@ -35,7 +35,12 @@ exports.run = async (bot, msg, args) => {
|
|||
}
|
||||
};
|
||||
|
||||
evaled = eval(code);
|
||||
|
||||
const str = `var func = async function() {\n ${code}\n}.bind(this)\nfunc`;
|
||||
|
||||
const toExecute = eval(str);
|
||||
|
||||
return await toExecute();
|
||||
|
||||
if (typeof evaled !== 'string') {
|
||||
evaled = require('util').inspect(evaled);
|
||||
|
|
Loading…
Reference in a new issue