mirror of
https://github.com/PHIDIAS0303/ClusterChatSync.git
synced 2025-12-27 03:05:21 +09:00
.
This commit is contained in:
@@ -142,8 +142,8 @@ class ControllerPlugin extends BaseControllerPlugin {
|
||||
await this.sendMessage(request, `**\`${nrc_username}\`**: ${nrc_message}`)
|
||||
|
||||
if (this.controller.config.get('ClusterChatSync.use_libretranslate')) {
|
||||
this.logger.info(`[Chat Sync] Translating message from ${request.instanceName} (${nrc_username}): ${nrc_message}`);
|
||||
const result = await this.translator.translate(nrc_message, this.translator_language);
|
||||
this.logger.info(result);
|
||||
|
||||
if (result && result.action) {
|
||||
await this.sendMessage(request, `**\`${nrc_username}\`**: ${result.passage}`)
|
||||
|
||||
Reference in New Issue
Block a user