deno fmt
This commit is contained in:
parent
156f3d528f
commit
c445364aa7
|
@ -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 => {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue