aboutsummaryrefslogtreecommitdiff
path: root/src/lib/utils
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-02 19:49:21 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-02 19:49:21 -0400
commit29cebebc18e9570b699caef8ebb04f4d3934722d (patch)
tree15a47fb5bea3839098d7700b48ad0f8b33eb13fa /src/lib/utils
parent39927eb63081eb8120f75ad38bc336bb48d0f2a7 (diff)
downloadtanzanite-29cebebc18e9570b699caef8ebb04f4d3934722d.tar.gz
tanzanite-29cebebc18e9570b699caef8ebb04f4d3934722d.tar.bz2
tanzanite-29cebebc18e9570b699caef8ebb04f4d3934722d.zip
clean up
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/BushConstants.ts5
-rw-r--r--src/lib/utils/BushLogger.ts23
2 files changed, 17 insertions, 11 deletions
diff --git a/src/lib/utils/BushConstants.ts b/src/lib/utils/BushConstants.ts
index 9eb96b3..5698b67 100644
--- a/src/lib/utils/BushConstants.ts
+++ b/src/lib/utils/BushConstants.ts
@@ -9,6 +9,7 @@ interface bushColors {
aqua: '#00bbff';
purple: '#8400ff';
blurple: '#5440cd';
+ newBlurple: '#5865f2';
pink: '#ff00e6';
green: '#00ff1e';
darkGreen: '#008f11';
@@ -98,6 +99,7 @@ export class BushConstants {
aqua: '#00bbff',
purple: '#8400ff',
blurple: '#5440cd',
+ newBlurple: '#5865f2',
pink: '#ff00e6',
green: '#00ff1e',
darkGreen: '#008f11',
@@ -149,8 +151,7 @@ export class BushConstants {
public static regex = {
snowflake: /\d{15,21}/im,
- // eslint-disable-next-line no-useless-escape
- discordEmoji: /<a?:(?<name>[a-zA-Z0-9\_]+):(?<id>\d{15,21})>/im
+ discordEmoji: /<a?:(?<name>[a-zA-Z0-9_]+):(?<id>\d{15,21})>/im
};
public static pronounMapping: { [x in PronounCode]: Pronoun } = {
diff --git a/src/lib/utils/BushLogger.ts b/src/lib/utils/BushLogger.ts
index fd0aa4d..c2a9989 100644
--- a/src/lib/utils/BushLogger.ts
+++ b/src/lib/utils/BushLogger.ts
@@ -1,4 +1,3 @@
-/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import chalk from 'chalk';
import { Message, MessageEmbed, Util } from 'discord.js';
import { inspect } from 'util';
@@ -105,7 +104,7 @@ export class BushLogger {
if (!client.config.logging.verbose) return;
const newContent = this.#inspectContent(content, depth, true);
console.info(
- `${chalk.bgGrey(this.#getTimeStamp())} ${chalk.grey(`[${header}]`)} ` + this.#parseFormatting(newContent, 'blackBright')
+ `${chalk.bgGrey(this.#getTimeStamp())} ${chalk.grey(`[${header}]`)} ${this.#parseFormatting(newContent, 'blackBright')}`
);
if (!sendChannel) return;
const embed = new MessageEmbed()
@@ -126,7 +125,7 @@ export class BushLogger {
if (!client.config.logging.info) return;
const newContent = this.#inspectContent(content, depth, true);
console.info(
- `${chalk.bgCyan(this.#getTimeStamp())} ${chalk.cyan(`[${header}]`)} ` + this.#parseFormatting(newContent, 'blueBright')
+ `${chalk.bgCyan(this.#getTimeStamp())} ${chalk.cyan(`[${header}]`)} ${this.#parseFormatting(newContent, 'blueBright')}`
);
if (!sendChannel) return;
const embed = new MessageEmbed()
@@ -146,8 +145,10 @@ export class BushLogger {
public static async warn(header: string, content: any, sendChannel = true, depth = 0): Promise<void> {
const newContent = this.#inspectContent(content, depth, true);
console.warn(
- `${chalk.bgYellow(this.#getTimeStamp())} ${chalk.yellow(`[${header}]`)} ` +
- this.#parseFormatting(newContent, 'yellowBright')
+ `${chalk.bgYellow(this.#getTimeStamp())} ${chalk.yellow(`[${header}]`)} ${this.#parseFormatting(
+ newContent,
+ 'yellowBright'
+ )}`
);
if (!sendChannel) return;
@@ -168,8 +169,10 @@ export class BushLogger {
public static async error(header: string, content: any, sendChannel = true, depth = 0): Promise<void> {
const newContent = this.#inspectContent(content, depth, true);
console.error(
- `${chalk.bgRedBright(this.#getTimeStamp())} ${chalk.redBright(`[${header}]`)} ` +
- this.#parseFormatting(newContent, 'redBright')
+ `${chalk.bgRedBright(this.#getTimeStamp())} ${chalk.redBright(`[${header}]`)} ${this.#parseFormatting(
+ newContent,
+ 'redBright'
+ )}`
);
if (!sendChannel) return;
const embed = new MessageEmbed()
@@ -190,8 +193,10 @@ export class BushLogger {
public static async success(header: string, content: any, sendChannel = true, depth = 0): Promise<void> {
const newContent = this.#inspectContent(content, depth, true);
console.log(
- `${chalk.bgGreen(this.#getTimeStamp())} ${chalk.greenBright(`[${header}]`)} ` +
- this.#parseFormatting(newContent, 'greenBright')
+ `${chalk.bgGreen(this.#getTimeStamp())} ${chalk.greenBright(`[${header}]`)} ${this.#parseFormatting(
+ newContent,
+ 'greenBright'
+ )}`
);
if (!sendChannel) return;
const embed = new MessageEmbed()