1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-06-04 09:03:50 -04:00

Sonar Cleanup - Phase 8

This commit is contained in:
Ean Milligan (Bastion)
2022-05-22 17:30:30 -04:00
parent 764b8c103b
commit bbba797dc3
3 changed files with 79 additions and 50 deletions

View File

@@ -537,7 +537,7 @@ export const generateApiStatus = (banned: boolean, active: boolean) => {
color: infoColor1,
title: `The Artificer's API is ${config.api.enable ? 'currently enabled' : 'currently disabled'}.`,
description: banned ? 'API rolls are banned from being used in this guild.\n\nThis will not be reversed.' : `API rolls are ${apiStatus} in this guild.`,
}]
}],
};
};

View File

@@ -62,7 +62,7 @@ export const compareOrigidx = (a: RollSet, b: RollSet): number => {
// escapeCharacters escapes all characters listed in esc
export const escapeCharacters = (str: string, esc: string): string => {
// Loop thru each esc char one at a time
for (const e of esc) {
for (const e of esc) {
log(LT.LOG, `Escaping character ${e} | ${str}, ${esc}`);
// Create a new regex to look for that char that needs replaced and escape it
const temprgx = new RegExp(`[${e}]`, 'g');