This commit is contained in:
2025-06-15 01:59:35 +09:00
parent a91c845683
commit a7d1438e1f

View File

@@ -37,8 +37,6 @@ class LibreTranslateAPI {
return result;
}
this.logger.info(`${detection.confidence} ${detection.confidence}`)
if (detection.confidence > MIN_CONFIDENCE_SCORE) {
for (const targetLang of targetLanguages) {
if (!((detection.language === 'zh-Hans' || detection.language === 'zh-Hant') && (targetLang === 'zh-Hans' || targetLang === 'zh-Hant')) && detection.language !== targetLang && this.allowedLanguages.includes(detection.language) && this.allowedLanguages.includes(targetLang)) {
@@ -144,7 +142,6 @@ class ControllerPlugin extends BaseControllerPlugin {
await this.sendMessage(request, `**\`${nrc_username}\`**: ${nrc_message}`)
if (this.controller.config.get('ClusterChatSync.use_libretranslate')) {
this.logger.info(`${this.translator_language}`)
const result = await this.translator.translate(nrc_message, this.translator_language);
if (result && result.action) {