This commit is contained in:
Unknown 2018-03-13 17:07:53 -04:00
parent 95150b7cb8
commit 6212c5e975

View file

@ -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);