From f19d7f954f124dbaef9a68243462c1d6c46a26b4 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 20 May 2025 15:32:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=A4=A9=E6=B0=94=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/weather/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/weather/main.py b/plugins/weather/main.py index 15519f7..50fd287 100644 --- a/plugins/weather/main.py +++ b/plugins/weather/main.py @@ -84,8 +84,8 @@ class WeatherPlugin(MessagePluginInterface): roomid = message.get("roomid", "") # 只处理群消息且包含"天气"的消息 - if not roomid or "天气" not in content: - return False + if not roomid or content.startswith("天气") or content.endswith("天气") : + return True return True