优化天气插件
This commit is contained in:
@@ -108,7 +108,7 @@ class WeatherPlugin(MessagePluginInterface):
|
||||
|
||||
# 处理消息内容 - 不再使用jieba分词
|
||||
city_name = self._extract_city_name(content)
|
||||
|
||||
self.LOG.debug(f"城市名称:{city_name}")
|
||||
if not city_name:
|
||||
await bot.send_text_message((roomid if roomid else sender), f"\n{self.command_format}", sender)
|
||||
return False, "命令格式错误"
|
||||
|
||||
Reference in New Issue
Block a user