From 9a9cdfe536399a02177d051abd261ded90147c56 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 25 Aug 2021 23:15:54 +0300 Subject: [PATCH] bs --- src/middleware/BaseClient.js | 2 +- src/middleware/Logger.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/middleware/BaseClient.js b/src/middleware/BaseClient.js index 9a2a3af..ece3730 100644 --- a/src/middleware/BaseClient.js +++ b/src/middleware/BaseClient.js @@ -34,7 +34,7 @@ class BaseClient extends EventEmitter { process.exit(); // Prevent a boot loop when shards die due to an error in the client }); - const API = await import('./api/index.js').catch((err) => this.warn(`Error importing API files:\n${err.stack}`)); + const API = await import('./api/index.js').catch(() => this.warn(`Error importing API files, continuing without`)); if (API) { this.info('Booting up API'); const { default: APIManager } = API; diff --git a/src/middleware/Logger.js b/src/middleware/Logger.js index 7c9e25d..3ca7951 100644 --- a/src/middleware/Logger.js +++ b/src/middleware/Logger.js @@ -50,7 +50,7 @@ class Logger { let color = Constants.Colors[type]; if(!color) color = Constants.Colors.info; - const header = `${chalk[color](`[${Util.date}][${shard ? `${api ? 'api-' : ''}shard${this._shardId(shard)}` : `${api ? 'api-' : ''}manager`}]`)}`; + const header = `${chalk[color](`[${Util.date}][${shard ? `${api ? 'api-s' : 'shard'}${this._shardId(shard)}` : `${api ? 'api-man' : 'manager'}`}]`)}`; const maximumCharacters = Math.max(...Constants.Types.map((t) => t.length)); const spacers = maximumCharacters - type.length;