调整天气触发词

This commit is contained in:
liuwei
2025-05-20 15:32:11 +08:00
parent 883a47c60a
commit f19d7f954f

View File

@@ -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