bs
This commit is contained in:
parent
fd8b6cb78d
commit
9a9cdfe536
@ -34,7 +34,7 @@ class BaseClient extends EventEmitter {
|
|||||||
process.exit(); // Prevent a boot loop when shards die due to an error in the client
|
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) {
|
if (API) {
|
||||||
this.info('Booting up API');
|
this.info('Booting up API');
|
||||||
const { default: APIManager } = API;
|
const { default: APIManager } = API;
|
||||||
|
@ -50,7 +50,7 @@ class Logger {
|
|||||||
let color = Constants.Colors[type];
|
let color = Constants.Colors[type];
|
||||||
if(!color) color = Constants.Colors.info;
|
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 maximumCharacters = Math.max(...Constants.Types.map((t) => t.length));
|
||||||
const spacers = maximumCharacters - type.length;
|
const spacers = maximumCharacters - type.length;
|
||||||
|
Loading…
Reference in New Issue
Block a user