From d57e14a3af7fa74aa74d33f38c1a5ecc776749c4 Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Sun, 20 Jun 2021 04:52:18 -0700 Subject: [PATCH] style: reformatted code a lil bit --- .idea/jsLinters/eslint.xml | 6 ++++++ src/lib/structures/command.ts | 4 ++-- src/lib/utils/logger.ts | 4 ++-- src/lib/utils/types.ts | 1 + 4 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .idea/jsLinters/eslint.xml diff --git a/.idea/jsLinters/eslint.xml b/.idea/jsLinters/eslint.xml new file mode 100644 index 0000000..541945b --- /dev/null +++ b/.idea/jsLinters/eslint.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/src/lib/structures/command.ts b/src/lib/structures/command.ts index 47e96c8..7278056 100644 --- a/src/lib/structures/command.ts +++ b/src/lib/structures/command.ts @@ -19,12 +19,12 @@ import type { ICommandOptions } from '@utils/types'; export default abstract class Command { public readonly client: Client; - public readonly options: ICommandOptions + public readonly options: ICommandOptions; public constructor(client: Client, options: ICommandOptions) { this.client = client; this.options = options; } - public abstract run(message: Message, ...args:string[]): void; + public abstract run(message: Message, ...args: string[]): void; } diff --git a/src/lib/utils/logger.ts b/src/lib/utils/logger.ts index 30d1452..7eee34c 100644 --- a/src/lib/utils/logger.ts +++ b/src/lib/utils/logger.ts @@ -27,7 +27,7 @@ let warnLevel = false; let errorLevel = false; let fatalLevel = false; -switch ((config.get('logLevel') as string).toLowerCase()) { +switch ((config.get('logLevel') as string).toLowerCase()) { case 'verbose': verboseLevel = true; debugLevel = true; @@ -83,7 +83,7 @@ export function debug(message: string, scope?: ELoggingScope): void { const splitMultiline = message.split('\n'); splitMultiline.forEach((val) => { - if(debugLevel) + if(debugLevel) if(scope) console.log(chalk`{grey (${date})} {magenta.bold ${scope}} {blue.bold [DEBUG]}: {blue ${val}}`); else diff --git a/src/lib/utils/types.ts b/src/lib/utils/types.ts index 183b2a9..d68a5e8 100644 --- a/src/lib/utils/types.ts +++ b/src/lib/utils/types.ts @@ -14,6 +14,7 @@ * You should have received a copy of the GNU General Public License * along with ArgonBot. If not, see . */ + //Enums export enum ELoggingScope { Startup = 'STARTUP',