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