From d1fe5cc0b3d2d576d4f4cc362dfe5a3e21033ee4 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 13 Mar 2018 17:16:03 -0400 Subject: t --- commands/Owners Only/eval.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/Owners Only') diff --git a/commands/Owners Only/eval.js b/commands/Owners Only/eval.js index 139722f..65913f5 100644 --- a/commands/Owners Only/eval.js +++ b/commands/Owners Only/eval.js @@ -24,7 +24,7 @@ exports.run = async (bot, msg, args) => { const code = args.join(' '); try { - const str = `var func = async function() {\n ${code}\n}.bind(this)`; + const str = `var func = async function() {\n ${code}\n}.bind(this)\nfunc`; const toExecute = eval(str); @@ -37,7 +37,7 @@ exports.run = async (bot, msg, args) => { .setAuthor('Eval Success') .setDescription('Eval\'s result') .addField(':inbox_tray: Input:', `\`\`\`js\n${code}\n\`\`\``) - .addField(':outbox_tray: Output:', `\`\`\`js\n${output}\n\`\`\``) + .addField(':outbox_tray: Output:', `\`\`\`js\n${toExecute}\n\`\`\``) .setFooter('Eval', bot.user.avatarURL) .setColor('GREEN'); return msg.channel.send({ embed }); -- cgit v1.2.3