diff --git a/src/classes/BotManager.ts b/src/classes/BotManager.ts index 2489acb0f..4674f2d66 100644 --- a/src/classes/BotManager.ts +++ b/src/classes/BotManager.ts @@ -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(); }