调整天气触发词
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user