fix: 表情列表改为正序输出,每个表情单独一条消息 (#222)
This commit is contained in:
parent
9b9ec42ffa
commit
9df10b9bb4
|
@ -712,16 +712,17 @@ export class add extends plugin {
|
||||||
|
|
||||||
let keyWord = await this.keyWordTran(arr[i].key)
|
let keyWord = await this.keyWordTran(arr[i].key)
|
||||||
if (!keyWord) continue
|
if (!keyWord) continue
|
||||||
|
let result = []
|
||||||
if (Array.isArray(keyWord)) {
|
if (Array.isArray(keyWord)) {
|
||||||
keyWord.unshift(`${arr[i].num}、`)
|
keyWord.unshift(`${num + 1}、`)
|
||||||
keyWord.push('\n')
|
keyWord.push('\n')
|
||||||
keyWord.forEach(v => msg.push(v))
|
result.push(...keyWord)
|
||||||
} else if (keyWord.type) {
|
} else if (keyWord.type) {
|
||||||
msg.push(`\n${arr[i].num}、`, keyWord, '\n\n')
|
result.push(`\n${num + 1}、`, keyWord, '\n\n')
|
||||||
} else {
|
} else {
|
||||||
msg.push(`${arr[i].num}、${keyWord}\n`)
|
result.push(`${num + 1}、${keyWord}\n`)
|
||||||
}
|
}
|
||||||
|
msg.push(result)
|
||||||
num++
|
num++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -734,7 +735,7 @@ export class add extends plugin {
|
||||||
title = `表情${search},${count}条`
|
title = `表情${search},${count}条`
|
||||||
}
|
}
|
||||||
|
|
||||||
let forwardMsg = await common.makeForwardMsg(this.e, [title, msg], title)
|
let forwardMsg = await common.makeForwardMsg(this.e, [title, ...msg], title)
|
||||||
|
|
||||||
this.e.reply(forwardMsg)
|
this.e.reply(forwardMsg)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue