mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 修复群名拿不到的问题
This commit is contained in:
parent
e29e370f25
commit
0d8ef840d4
2 changed files with 2 additions and 2 deletions
|
|
@ -2142,7 +2142,7 @@ export class chatgpt extends plugin {
|
|||
opt.groupId = e.group_id
|
||||
opt.qq = e.sender.user_id
|
||||
opt.nickname = e.sender.card
|
||||
opt.groupName = e.group.name
|
||||
opt.groupName = e.group.name || e.group_name
|
||||
opt.botName = e.isGroup ? (e.group.pickMember(getUin(e)).card || e.group.pickMember(getUin(e)).nickname) : e.bot.nickname
|
||||
let master = (await getMasterQQ())[0]
|
||||
if (master && e.group) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
export async function getChatHistoryGroup (e, num) {
|
||||
if (e.adapter === 'shamrock') {
|
||||
return await e.group.getChatHistory(0, num)
|
||||
return await e.group.getChatHistory(0, num, false)
|
||||
} else {
|
||||
let latestChats = await e.group.getChatHistory(0, 1)
|
||||
if (latestChats.length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue