Add verbose logging
This commit is contained in:
@@ -39,6 +39,11 @@ export class IrcbotService {
|
||||
this.logger.verbose(`${channel} contains ${JSON.stringify(names)}`);
|
||||
});
|
||||
|
||||
this.client.on('errors', (event: any) => this.logger.error(event));
|
||||
this.client.on('error', (event: any) => this.logger.error(event));
|
||||
this.client.on('notice', (event) => this.logger.verbose(event));
|
||||
this.client.on('data', (event) => this.logger.verbose(event));
|
||||
|
||||
this.client.on('message', async (message) => {
|
||||
if (message.to !== channel) return;
|
||||
if (message.message[0] !== this.prefix) return;
|
||||
|
Reference in New Issue
Block a user