Skip to content

Commit

Permalink
🔀 Merge pull request #543
Browse files Browse the repository at this point in the history
🔨 fix bot crash if enableSocket set to false
  • Loading branch information
idinium96 authored Apr 3, 2021
2 parents e45ebf7 + 21e9852 commit 200a879
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/classes/BotManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ export default class BotManager {
return this.stop(null, false, false);
}

log.info('Connecting to socket server...');
this.socketManager.connect();
if (this.bot?.options.enableSocket) {
log.info('Connecting to socket server...');
this.socketManager.connect();
}

return resolve();
}
Expand Down

0 comments on commit 200a879

Please sign in to comment.