forked from Galactic/galactic-bot
hopefully fixes some error
This commit is contained in:
parent
79c302ce04
commit
becfa586ab
@ -11,7 +11,7 @@ class EventHooker {
|
|||||||
this.events = new Map();
|
this.events = new Map();
|
||||||
this.logger = new Logger(this);
|
this.logger = new Logger(this);
|
||||||
|
|
||||||
this.safeEvents = ['componentUpdate', 'ready', 'shardReady'];
|
this.safeEvents = ['componentUpdate', 'ready', 'shardReady', 'rateLimit', 'guildCreate'];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ class Logger {
|
|||||||
|
|
||||||
|
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
if (!process.send) console.log(message);
|
if (!process.send || !process.connected) console.log(message);
|
||||||
else process.send({ _logger: true, message, ...opts });
|
else process.send({ _logger: true, message, ...opts });
|
||||||
//return this.client.intercom.send('logger', { message, ...opts });
|
//return this.client.intercom.send('logger', { message, ...opts });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user