Skip to content

Commit

Permalink
fix: catch client errors
Browse files Browse the repository at this point in the history
  • Loading branch information
amishshah committed Apr 23, 2020
1 parent 8c5afd4 commit 822e03b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/HackathonClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export class HackathonClient extends AkairoClient {
this.muteTracker = new MuteTracker();

this.on('debug', msg => this.loggers.bot.info(msg));
this.on('error', (error: Error) => this.loggers.bot.error(error));

this.commandHandler = new CommandHandler(this, {
blockBots: true,
Expand Down

0 comments on commit 822e03b

Please sign in to comment.