diff options
author | TymanWasTaken <32660892+tymanwastaken@users.noreply.github.com> | 2021-05-25 13:01:53 -0600 |
---|---|---|
committer | TymanWasTaken <32660892+tymanwastaken@users.noreply.github.com> | 2021-05-25 13:01:53 -0600 |
commit | df172e0b0d4180d025e19b80f4f091b01401e0d1 (patch) | |
tree | cf1b7d5f2ca4ec740256a88f001b676eb8553f9f /src/commands | |
parent | bbe1ab863f69d76482979607e71199899b2a3a3e (diff) | |
download | tanzanite-df172e0b0d4180d025e19b80f4f091b01401e0d1.tar.gz tanzanite-df172e0b0d4180d025e19b80f4f091b01401e0d1.tar.bz2 tanzanite-df172e0b0d4180d025e19b80f4f091b01401e0d1.zip |
Compltely update to esbuild and yarn v2, fix eval, and bump akairo fork version (this one has private responses)
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/owner/eval.ts | 16 |
1 files changed, 8 insertions, 8 deletions
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( |