优化天气插件

This commit is contained in:
liuwei
2025-05-22 11:32:58 +08:00
parent 9f1359fbeb
commit 07b0140256

View File

@@ -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, "命令格式错误"