mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: 试图拿到更完整的群聊信息
This commit is contained in:
parent
1c79ff00b7
commit
847a623c75
2 changed files with 6 additions and 1 deletions
|
|
@ -1023,6 +1023,11 @@ export class chatgpt extends plugin {
|
|||
chats.push(...chatHistory)
|
||||
}
|
||||
chats = chats.slice(0, Config.groupContextLength)
|
||||
let mm = await e.group.getMemberMap()
|
||||
chats.forEach(chat => {
|
||||
let sender = mm.get(chat.sender.user_id)
|
||||
chat.sender = sender
|
||||
})
|
||||
console.log(chats)
|
||||
opt.chats = chats
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue