From 58e6201e6e0aaa67f84e094b53ce0482d58075d4 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Wed, 28 Feb 2024 16:39:57 +0800 Subject: [PATCH] fix: replace getMemberMap with gml --- apps/chat.js | 2 +- utils/face.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}`) }