From df172e0b0d4180d025e19b80f4f091b01401e0d1 Mon Sep 17 00:00:00 2001 From: TymanWasTaken <32660892+tymanwastaken@users.noreply.github.com> Date: Tue, 25 May 2021 13:01:53 -0600 Subject: Compltely update to esbuild and yarn v2, fix eval, and bump akairo fork version (this one has private responses) --- src/commands/owner/eval.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/commands') diff --git a/src/commands/owner/eval.ts b/src/commands/owner/eval.ts index 2d5eb2d..0b793c9 100644 --- a/src/commands/owner/eval.ts +++ b/src/commands/owner/eval.ts @@ -66,7 +66,7 @@ export default class EvalCommand extends BotCommand { config = this.client.config, sh = promisify(exec), models = this.client.db.models, - got = await import('got'); + got = require('got'); // eslint-disable-line @typescript-eslint/no-var-requires output = eval(code); output = await output; if (typeof output !== 'string') output = inspect(output, { depth }); @@ -81,14 +81,14 @@ export default class EvalCommand extends BotCommand { '📥 Input', code.length > 1012 ? 'Too large to display. Hastebin: ' + - (await this.client.util.haste(code)) + (await this.client.util.haste(code)) : '```js\n' + code + '```' ) .addField( '📤 Output', output.length > 1012 ? 'Too large to display. Hastebin: ' + - (await this.client.util.haste(output)) + (await this.client.util.haste(output)) : '```js\n' + output + '```' ) .setColor('#66FF00') @@ -104,18 +104,18 @@ export default class EvalCommand extends BotCommand { '📥 Input', code.length > 1012 ? 'Too large to display. Hastebin: ' + - (await this.client.util.haste(code)) + (await this.client.util.haste(code)) : '```js\n' + code + '```' ) .addField( '📤 Output', e.length > 1012 ? 'Too large to display. Hastebin: ' + - (await this.client.util.haste(e)) + (await this.client.util.haste(e)) : '```js\n' + - e + - '```Full stack:' + - (await this.client.util.haste(e.stack)) + e + + '```Full stack:' + + (await this.client.util.haste(e.stack)) ) .setColor('#FF0000') .setFooter( -- cgit