This commit is contained in:
Ean Milligan 2025-06-21 21:09:05 -04:00
parent 9d6b389d71
commit 0066652590
2 changed files with 4 additions and 6 deletions

View File

@ -21,7 +21,7 @@ export const tokenizeCmd = (
cmd: string[], cmd: string[],
modifiers: RollModifiers, modifiers: RollModifiers,
topLevel: boolean, topLevel: boolean,
previousResults: number[] = [] previousResults: number[] = [],
): [ReturnData[], CountDetails[], RollDistributionMap[]] => { ): [ReturnData[], CountDetails[], RollDistributionMap[]] => {
loggingEnabled && log(LT.LOG, `Tokenizing command ${JSON.stringify(cmd)}`); loggingEnabled && log(LT.LOG, `Tokenizing command ${JSON.stringify(cmd)}`);
@ -43,9 +43,7 @@ export const tokenizeCmd = (
loggingEnabled && loggingEnabled &&
log( log(
LT.LOG, LT.LOG,
`Setting previous results: topLevel:${topLevel} ${ `Setting previous results: topLevel:${topLevel} ${topLevel ? returnData.map((rd) => rd.rollTotal) : previousResults} simulatedLoopCount:${simulatedLoopCount}`,
topLevel ? returnData.map((rd) => rd.rollTotal) : previousResults
} simulatedLoopCount:${simulatedLoopCount}`
); );
const simulatedData: ReturnData[] = []; const simulatedData: ReturnData[] = [];
@ -86,7 +84,7 @@ export const tokenizeCmd = (
currentCmd, currentCmd,
modifiers, modifiers,
false, false,
topLevel ? returnData.map((rd) => rd.rollTotal) : previousResults topLevel ? returnData.map((rd) => rd.rollTotal) : previousResults,
); );
const ccData = ccTempData[0]; const ccData = ccTempData[0];
ccData.rollPreFormat = '\nAuto-Confirming Crit: '; ccData.rollPreFormat = '\nAuto-Confirming Crit: ';

View File

@ -138,7 +138,7 @@ export const apiRoll = async (query: Map<string, string>, apiUserid: bigint): Pr
} else { } else {
// Alert API user that they messed up // Alert API user that they messed up
return stdResp.Forbidden( 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 { } else {