From a4da2927fa4612066e4c432e5f3bffba67115567 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 28 Jul 2022 22:30:48 +0800 Subject: [PATCH] fix: Ignore qq guild message --- efb_qq_plugin_go_cqhttp/GoCQHttp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/efb_qq_plugin_go_cqhttp/GoCQHttp.py b/efb_qq_plugin_go_cqhttp/GoCQHttp.py index c113d4d..7029a9f 100644 --- a/efb_qq_plugin_go_cqhttp/GoCQHttp.py +++ b/efb_qq_plugin_go_cqhttp/GoCQHttp.py @@ -195,6 +195,9 @@ class GoCQHttp(BaseClient): chat: Chat author: ChatMember + # ignore qq guild message + if context["message_type"] == "guild": + return user = await self.get_user_info(qq_uid) if context["message_type"] == "private": context["alias"] = user["remark"]