Skip to content

Commit 3192364

Browse files
committed
fix: 群聊打招呼中 "在打招呼中真的At用户" bug
1 parent 745e6b5 commit 3192364

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

apps/groupSayHello.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,9 @@ export class groupSayHello extends plugin {
319319
return false
320320
}
321321

322-
// 移除 CQ
323-
answer = removeCQCode(answer);
324-
325322
if (answer) {
326323
// 构建消息数组
327-
const messages = []
324+
let messages = []
328325

329326
// 如果有生成的图片,根据是否有配对信息来处理
330327
if (imageBase64 && imageBase64.length > 0) {
@@ -366,6 +363,9 @@ export class groupSayHello extends plugin {
366363
}
367364
}
368365

366+
// 移除 CQ
367+
messages = removeCQCode(messages);
368+
369369
// 发送打招呼消息
370370
await group.sendMsg(messages)
371371
// logger.debug(`[群自动打招呼] 群 ${groupId} 发送成功`)

guoba.support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ export function supportGuoba() {
17011701
{
17021702
field: "groupPrompt",
17031703
label: "群单独提示词",
1704-
bottomHelpMessage: '除了接口中的系统提示词外,还可以在这里设置输入提示词。',
1704+
bottomHelpMessage: '除了接口中的系统提示词(System Prompt)外,还可以在这里设置输入提示词(Input)。',
17051705
component: "Input",
17061706
componentProps: {
17071707
placeholder: '请根据以下最近的群聊记录,生成一条像真人一样的回复,长度控制在50字以内,直接输出内容,不要加任何前缀或解释。',

0 commit comments

Comments
 (0)