mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 00:53:50 -04:00
deno fmt
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user