mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
fix: 撤回tool的问题
This commit is contained in:
parent
ca28b00679
commit
aed271479d
1 changed files with 3 additions and 2 deletions
|
|
@ -2007,8 +2007,9 @@ export class chatgpt extends plugin {
|
||||||
tools.push(...[new EditCardTool(), new JinyanTool(), new KickOutTool(), new HandleMessageMsgTool()])
|
tools.push(...[new EditCardTool(), new JinyanTool(), new KickOutTool(), new HandleMessageMsgTool()])
|
||||||
// 用于撤回和加精的id
|
// 用于撤回和加精的id
|
||||||
option.systemMessage += `\nthis last message id is ${e.message_id}`
|
option.systemMessage += `\nthis last message id is ${e.message_id}`
|
||||||
if (e.source?.message_id) {
|
if (e.source?.seq) {
|
||||||
option.systemMessage += `\nthis last message is replying to ${e.source.message_id}: ${(await e.group.getChatHistory(e.source.seq, 1)).pop()?.raw_message}`
|
let source = (await e.group.getChatHistory(e.source?.seq, 1)).pop()
|
||||||
|
option.systemMessage += `\nthis last message is replying to ${source.message_id}: ${source?.raw_message}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue