调整天气触发词

This commit is contained in:
liuwei
2025-05-20 15:43:42 +08:00
parent 6c8553e9b6
commit e6af84cd1e

View File

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