hopefully force shard to quit if IPC closes
This commit is contained in:
parent
85448f9616
commit
289d3c7f3b
@ -5,17 +5,17 @@ const { SlashCommand, CommandError } = require("../../../interfaces");
|
||||
|
||||
const Constants = {
|
||||
Badges: {
|
||||
DISCORD_EMPLOYEE: Emojis['discord-staff'],
|
||||
DISCORD_PARTNER: Emojis['discord-partner'],
|
||||
HYPESQUAD_EVENTS: Emojis['hypesquad-events'],
|
||||
BUGHUNTER_LEVEL_1: Emojis['bughunter'], //eslint-disable-line dot-notation
|
||||
BUGHUNTER_LEVEL_2: Emojis['bughunter-gold'],
|
||||
HOUSE_BRAVERY: Emojis['hypesquad-bravery'],
|
||||
HOUSE_BRILLIANCE: Emojis['hypesquad-brilliance'],
|
||||
HOUSE_BALANCE: Emojis['hypesquad-balance'],
|
||||
EARLY_SUPPORTER: Emojis['early-supporter'],
|
||||
EARLY_VERIFIED_BOT_DEVELOPER: Emojis['bot-developer'],
|
||||
DISCORD_CERTIFIED_MODERATOR: Emojis['certified-moderator']
|
||||
Staff: Emojis['discord-staff'],
|
||||
Partner: Emojis['discord-partner'],
|
||||
Hypesquad: Emojis['hypesquad-events'],
|
||||
BugHunterLevel1: Emojis['bughunter'], //eslint-disable-line dot-notation
|
||||
BugHunterLevel2: Emojis['bughunter-gold'],
|
||||
HypeSquadOnlineHouse1: Emojis['hypesquad-bravery'],
|
||||
HypeSquadOnlineHouse2: Emojis['hypesquad-brilliance'],
|
||||
HypeSquadOnlineHouse3: Emojis['hypesquad-balance'],
|
||||
PremiumEarlySupporter: Emojis['early-supporter'],
|
||||
VerifiedDeveloper: Emojis['bot-developer'],
|
||||
CertifiedModerator: Emojis['certified-moderator']
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -16,8 +16,8 @@ class Logger {
|
||||
message = `${chalk.bold(`[${this.name.substring(0, 6)}]`)} ${message}`;
|
||||
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
if (!process.send || !process.connected) console.log(message);
|
||||
// eslint-disable-next-line no-console, no-process-exit
|
||||
if (!process.send || !process.connected) process.exit(); // Child-process disconnected for some reason //console.log(message);
|
||||
else process.send({ _logger: true, message, ...opts });
|
||||
//return this.client.intercom.send('logger', { message, ...opts });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user