From 152b9ff153afedcea5ad1a3268e74f4e8e02ddfd Mon Sep 17 00:00:00 2001 From: Ean Milligan Date: Wed, 23 Jul 2025 01:22:52 -0400 Subject: [PATCH] deno fmt --- src/artigen/managers/handler/workerComplete.ts | 11 ++++++----- src/endpoints/gets/apiRoll.ts | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/artigen/managers/handler/workerComplete.ts b/src/artigen/managers/handler/workerComplete.ts index 9579fab..447f6b6 100644 --- a/src/artigen/managers/handler/workerComplete.ts +++ b/src/artigen/managers/handler/workerComplete.ts @@ -275,8 +275,8 @@ Please click on "<@${botId}> *Click to see attachment*" above this message to se status: STATUS_CODE.OK, statusText: STATUS_TEXT[STATUS_CODE.OK], headers, - } - ) + }, + ), ); } } catch (e) { @@ -287,12 +287,13 @@ Please click on "<@${botId}> *Click to see attachment*" above this message to se ( await generateRollEmbed( rollRequest.dd.authorId, - { + { error: true, - errorMsg: `Something weird went wrong, likely the requested roll is too complex and caused the response to be too large for Discord. Try breaking the request down into smaller messages and try again.\n\nIf this error continues to come up, please \`${config.prefix}report\` this to my developer.`, + errorMsg: + `Something weird went wrong, likely the requested roll is too complex and caused the response to be too large for Discord. Try breaking the request down into smaller messages and try again.\n\nIf this error continues to come up, please \`${config.prefix}report\` this to my developer.`, errorCode: 'UnhandledWorkerComplete', }, - {} + {}, ) ).embed, ], diff --git a/src/endpoints/gets/apiRoll.ts b/src/endpoints/gets/apiRoll.ts index 83cde97..0d1625f 100644 --- a/src/endpoints/gets/apiRoll.ts +++ b/src/endpoints/gets/apiRoll.ts @@ -119,7 +119,7 @@ export const apiRoll = async (query: Map, apiUserid: bigint): Pr const [name, rawSides] = shape.split(':').filter((x) => x); if (!name || !rawSides) { return stdResp.BadRequest( - 'cd specified with invalid pattern. Must be in format of `name:[side1,side2,...,sideN]`. If multiple custom dice shapes are needed, use a `;` to separate the list' + 'cd specified with invalid pattern. Must be in format of `name:[side1,side2,...,sideN]`. If multiple custom dice shapes are needed, use a `;` to separate the list', ); }