Add verbose logging

This commit is contained in:
2023-09-19 21:54:40 -06:00
parent 09596b77d8
commit 3f9f32d1b8

View File

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