调整天气触发词
This commit is contained in:
@@ -86,7 +86,8 @@ class WeatherPlugin(MessagePluginInterface):
|
|||||||
# 只处理群消息且包含"天气"的消息
|
# 只处理群消息且包含"天气"的消息
|
||||||
if not roomid:
|
if not roomid:
|
||||||
return False
|
return False
|
||||||
|
if content.startswith("天气") or content.endswith("天气"):
|
||||||
|
return True
|
||||||
command = content.split(" ")[0]
|
command = content.split(" ")[0]
|
||||||
return command in self._commands
|
return command in self._commands
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user