diff options
Diffstat (limited to 'src/commands/owner/eval.ts')
-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( |