diff --git a/apps/chat.js b/apps/chat.js index 9fd5cfbe..f01f02c5 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -908,7 +908,7 @@ export class chatgpt extends plugin { prompt = msg.trim() try { if (e.isGroup) { - let mm = await this.e.bot.gml + let mm = this.e.bot.gml let me = mm.get(getUin(e)) || {} let card = me.card let nickname = me.nickname diff --git a/utils/face.js b/utils/face.js index 3e96fe49..52d4456b 100644 --- a/utils/face.js +++ b/utils/face.js @@ -470,7 +470,7 @@ export async function convertFaces (msg, handleAt = false, e) { let groupCardQQMap = {} if (handleAt) { try { - groupMembers = await e.group.getMemberMap() + groupMembers = e.bot.gml } catch (err) { console.error(`Failed to get group members: ${err}`) }