This commit is contained in:
Ean Milligan (Bastion) 2022-07-10 01:59:55 -04:00
parent 539616679b
commit 38146a3c8f
4 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ import {
// Discordeno deps
DiscordenoMessage,
} from '../../deps.ts';
import { successColor, failColor } from '../commandUtils.ts';
import { failColor, successColor } from '../commandUtils.ts';
import utils from '../utils.ts';
export const optIn = async (message: DiscordenoMessage) => {

View File

@ -4,7 +4,7 @@ import {
// Discordeno deps
DiscordenoMessage,
} from '../../deps.ts';
import { successColor, failColor } from '../commandUtils.ts';
import { failColor, successColor } from '../commandUtils.ts';
import utils from '../utils.ts';
export const optOut = async (message: DiscordenoMessage) => {

View File

@ -16,7 +16,7 @@ export const dbClient = await new Client().connect({
// List of userIds who have requested that the bot ignore them
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) => {
ignoreList.push(userIdObj.userid);
});

View File

@ -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)
const parenSolve = fullSolver(conf.slice(openParen + 1, closeParen), true);
// 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)
// insertedMult flags if there was a multiplication sign inserted before the parens