deno fmt
This commit is contained in:
		
							parent
							
								
									539616679b
								
							
						
					
					
						commit
						38146a3c8f
					
				| 
						 | 
					@ -4,7 +4,7 @@ import {
 | 
				
			||||||
	// Discordeno deps
 | 
						// Discordeno deps
 | 
				
			||||||
	DiscordenoMessage,
 | 
						DiscordenoMessage,
 | 
				
			||||||
} from '../../deps.ts';
 | 
					} from '../../deps.ts';
 | 
				
			||||||
import { successColor, failColor } from '../commandUtils.ts';
 | 
					import { failColor, successColor } from '../commandUtils.ts';
 | 
				
			||||||
import utils from '../utils.ts';
 | 
					import utils from '../utils.ts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const optIn = async (message: DiscordenoMessage) => {
 | 
					export const optIn = async (message: DiscordenoMessage) => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,7 +4,7 @@ import {
 | 
				
			||||||
	// Discordeno deps
 | 
						// Discordeno deps
 | 
				
			||||||
	DiscordenoMessage,
 | 
						DiscordenoMessage,
 | 
				
			||||||
} from '../../deps.ts';
 | 
					} from '../../deps.ts';
 | 
				
			||||||
import { successColor, failColor } from '../commandUtils.ts';
 | 
					import { failColor, successColor } from '../commandUtils.ts';
 | 
				
			||||||
import utils from '../utils.ts';
 | 
					import utils from '../utils.ts';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const optOut = async (message: DiscordenoMessage) => {
 | 
					export const optOut = async (message: DiscordenoMessage) => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,7 +16,7 @@ export const dbClient = await new Client().connect({
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// List of userIds who have requested that the bot ignore them
 | 
					// List of userIds who have requested that the bot ignore them
 | 
				
			||||||
export const ignoreList: Array<bigint> = [];
 | 
					export const ignoreList: Array<bigint> = [];
 | 
				
			||||||
const dbIgnoreList = await dbClient.query("SELECT * FROM ignore_list");
 | 
					const dbIgnoreList = await dbClient.query('SELECT * FROM ignore_list');
 | 
				
			||||||
dbIgnoreList.forEach((userIdObj: UserIdObj) => {
 | 
					dbIgnoreList.forEach((userIdObj: UserIdObj) => {
 | 
				
			||||||
	ignoreList.push(userIdObj.userid);
 | 
						ignoreList.push(userIdObj.userid);
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -64,7 +64,7 @@ export const fullSolver = (conf: (string | number | SolvedStep)[], wrapDetails:
 | 
				
			||||||
		// Call the solver on the items between openParen and closeParen (excluding the parens)
 | 
							// Call the solver on the items between openParen and closeParen (excluding the parens)
 | 
				
			||||||
		const parenSolve = fullSolver(conf.slice(openParen + 1, closeParen), true);
 | 
							const parenSolve = fullSolver(conf.slice(openParen + 1, closeParen), true);
 | 
				
			||||||
		// Replace the itemes between openParen and closeParen (including the parens) with its solved equilvalent
 | 
							// Replace the itemes between openParen and closeParen (including the parens) with its solved equilvalent
 | 
				
			||||||
		conf.splice(openParen, (closeParen - openParen + 1), parenSolve);
 | 
							conf.splice(openParen, closeParen - openParen + 1, parenSolve);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// Determing if we need to add in a multiplication sign to handle implicit multiplication (like "(4)2" = 8)
 | 
							// Determing if we need to add in a multiplication sign to handle implicit multiplication (like "(4)2" = 8)
 | 
				
			||||||
		// insertedMult flags if there was a multiplication sign inserted before the parens
 | 
							// insertedMult flags if there was a multiplication sign inserted before the parens
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue