天气,不要结尾是天气的解析

This commit is contained in:
liuwei
2026-01-22 15:17:10 +08:00
parent 54bdc3a971
commit 78b23767c3

View File

@@ -150,7 +150,6 @@ class WeatherPlugin(MessagePluginInterface):
content = str(message.get("content", "")).strip()
for cmd in ["天气", "订阅天气", "取消订阅"]:
if content.startswith(cmd): return True
return content.endswith("天气")
@plugin_stats_decorator(plugin_name="天气查询")
@plugin_points_cost(10, "天气服务消耗积分", FEATURE_KEY)