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