fix: remove long translation result forward

This commit is contained in:
ikechan8370 2024-02-24 16:52:01 +08:00
parent f1b950ce58
commit bf75c002c0
2 changed files with 13 additions and 4 deletions

View file

@ -170,10 +170,10 @@ ${translateLangLabels}
await this.reply(err.message, e.isGroup)
return false
}
const totalLength = Array.isArray(result)
? result.reduce((acc, cur) => acc + cur.length, 0)
: result.length
if (totalLength > 300 || multiText) {
// const totalLength = Array.isArray(result)
// ? result.reduce((acc, cur) => acc + cur.length, 0)
// : result.length
if (multiText) {
// 多条翻译结果
if (Array.isArray(result)) {
result = await makeForwardMsg(e, result, '翻译结果')