fix: end text

This commit is contained in:
葛胤池 2022-12-10 23:23:35 +08:00
parent 70044eb6c0
commit 94c35fa2f1

View file

@ -239,7 +239,9 @@ export class chatgpt extends plugin {
}
}
if (userSetting.usePicture) {
while (!response.trimEnd().endsWith('.') && !response.trimEnd().endsWith('。') && !response.trimEnd().endsWith('……')) {
while (!response.trimEnd().endsWith('.') && !response.trimEnd().endsWith('。') && !response.trimEnd().endsWith('……') &&
!response.trimEnd().endsWith('') && !response.trimEnd().endsWith('!') && !response.trimEnd().endsWith(']') && !response.trimEnd().endsWith('】')
) {
await this.reply('内容有点多,我正在奋笔疾书,请再等一会', true, 5)
const responseAppend = await c.sendMessage('Continue')
// 检索是否有屏蔽词