This commit is contained in:
Erik 2021-08-25 23:15:54 +03:00
parent fd8b6cb78d
commit 9a9cdfe536
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;