From 0d1388d8ae5ca635d40fa7ba37662294e3fca729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Wed, 22 Feb 2023 14:38:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Update=20Map=20Plugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/map.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/genshin/map.py b/plugins/genshin/map.py index 33cd117..6a0878e 100644 --- a/plugins/genshin/map.py +++ b/plugins/genshin/map.py @@ -140,10 +140,15 @@ class Map(Plugin, BasePlugin): return logger.info("用户: %s [%s] 使用 map 命令查询了 %s", user.username, user.id, resource_name) if resource_name not in self.map_helper.query_map: + # 消息来源于群组中并且无法找到默认不回复即可 + if filters.ChatType.GROUPS.filter(message) and group_dict is not None: + return await message.reply_text("没有找到该资源。", parse_mode="Markdown") return maps = self.get_show_map(resource_name) if len(maps) == 0: + if filters.ChatType.GROUPS.filter(message) and group_dict is not None: + return await message.reply_text("没有找到该资源。", parse_mode="Markdown") return if len(maps) == 1: