This commit is contained in:
Ean Milligan 2025-07-23 01:22:52 -04:00
parent e957e181d5
commit 152b9ff153
2 changed files with 7 additions and 6 deletions

View File

@ -275,8 +275,8 @@ Please click on "<@${botId}> *Click to see attachment*" above this message to se
status: STATUS_CODE.OK, status: STATUS_CODE.OK,
statusText: STATUS_TEXT[STATUS_CODE.OK], statusText: STATUS_TEXT[STATUS_CODE.OK],
headers, headers,
} },
) ),
); );
} }
} catch (e) { } catch (e) {
@ -287,12 +287,13 @@ Please click on "<@${botId}> *Click to see attachment*" above this message to se
( (
await generateRollEmbed( await generateRollEmbed(
rollRequest.dd.authorId, rollRequest.dd.authorId,
<SolvedRoll>{ <SolvedRoll> {
error: true, 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', errorCode: 'UnhandledWorkerComplete',
}, },
<RollModifiers>{} <RollModifiers> {},
) )
).embed, ).embed,
], ],

View File

@ -119,7 +119,7 @@ export const apiRoll = async (query: Map<string, string>, apiUserid: bigint): Pr
const [name, rawSides] = shape.split(':').filter((x) => x); const [name, rawSides] = shape.split(':').filter((x) => x);
if (!name || !rawSides) { if (!name || !rawSides) {
return stdResp.BadRequest( 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',
); );
} }