From e6af84cd1e382a570b4dc26c884acc82deb9a6e4 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 20 May 2025 15:43:42 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/weather/main.py b/plugins/weather/main.py index 5ea78f3..a2c2330 100644 --- a/plugins/weather/main.py +++ b/plugins/weather/main.py @@ -86,7 +86,8 @@ class WeatherPlugin(MessagePluginInterface): # 只处理群消息且包含"天气"的消息 if not roomid: return False - + if content.startswith("天气") or content.endswith("天气"): + return True command = content.split(" ")[0] return command in self._commands