This commit is contained in:
2025-06-15 01:50:49 +09:00
parent 502a2046c3
commit 0ce72da2ba

View File

@@ -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}`)