diff --git a/controller.js b/controller.js index 435ac93..5db7882 100644 --- a/controller.js +++ b/controller.js @@ -74,7 +74,7 @@ class LibreTranslateAPI { class ControllerPlugin extends BaseControllerPlugin { async init() { this.controller.config.on('fieldChanged', (field, curr, prev) => { - if (field === 'chat_sync.discord_bot_token') this.connect().catch(err => {this.logger.error(`Unexpected error:\n${err.stack}`)}); + if (field === 'chat_sync.discord_bot_token') this.connect().catch(err => {this.logger.error(`Unexpected error:\n${err.stack}`);}); }); this.controller.handle(InstanceActionEvent, this.handleInstanceAction.bind(this));