mirror of
https://github.com/PHIDIAS0303/ClusterChatSync.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -74,7 +74,7 @@ class LibreTranslateAPI {
|
|||||||
class ControllerPlugin extends BaseControllerPlugin {
|
class ControllerPlugin extends BaseControllerPlugin {
|
||||||
async init() {
|
async init() {
|
||||||
this.controller.config.on('fieldChanged', (field, curr, prev) => {
|
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));
|
this.controller.handle(InstanceActionEvent, this.handleInstanceAction.bind(this));
|
||||||
|
|||||||
Reference in New Issue
Block a user