This commit is contained in:
Ean Milligan 2025-07-09 13:13:17 -04:00
parent 156f3d528f
commit c445364aa7
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ const getRollFromArray = (sides: number[], modifiers: RollModifiers): number =>
return Math.min(...sides);
}
return sides[genBasicRoll(sides.length, modifiers, <DPercentConf>{ on: false }) - 1];
return sides[genBasicRoll(sides.length, modifiers, <DPercentConf> { on: false }) - 1];
};
export const generateRoll = (rollConf: RollConf, modifiers: RollModifiers): number => {

View File

@ -117,7 +117,7 @@ export const apiRoll = async (query: Map<string, string>, 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',
);
}
@ -177,7 +177,7 @@ export const apiRoll = async (query: Map<string, string>, apiUserid: bigint): Pr
} else {
// Alert API user that they messed up
return stdResp.Forbidden(
`Verify you are a member of the guild you are sending this roll to. If you are, the ${config.name} may not have that registered, please send a message in the guild so ${config.name} can register this. This registration is temporary, so if you see this error again, just poke your server again.`
`Verify you are a member of the guild you are sending this roll to. If you are, the ${config.name} may not have that registered, please send a message in the guild so ${config.name} can register this. This registration is temporary, so if you see this error again, just poke your server again.`,
);
}
} else {