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