# ============================================ # 天气查询词库 v4 - 修复多行问题,所有模板合并为一行 # 适配 WordBankPlugin v3.2 # ============================================ # 重要:词库文件每行一个规则/回复,不支持多行 # 模板中的换行请使用 \n 表示 # ============================================ # 1. 通用天气查询(Markdown全信息,单行模板) # ============================================ [正则]^天气\s*(.+)$ 回复:api:GET|https://wttr.in/$1?format=j1| |markdown|## 🌤️ $1 实时天气\n\n| 项目 | 数值 |\n|------|------|\n| 🌡️ 温度 | {current_condition[0].temp_C}°C |\n| 🤒 体感 | {current_condition[0].FeelsLikeC}°C |\n| ☁️ 天气 | {current_condition[0].weatherDesc[0].value} |\n| 💧 湿度 | {current_condition[0].humidity}% |\n| 🌬️ 风速 | {current_condition[0].windspeedKmph} km/h |\n| 🧭 风向 | {current_condition[0].winddir16Point} |\n| 📊 气压 | {current_condition[0].pressure} hPa |\n| 👁️ 能见度 | {current_condition[0].visibility} km |\n| ☀️ 紫外线 | {current_condition[0].uvIndex} |\n| ☁️ 云量 | {current_condition[0].cloudcover}% |\n\n> 📅 查询时间:[datetime]\n> 🌐 数据来源:wttr.in [正则]^查天气\s*(.+)$ 回复:api:GET|https://wttr.in/$1?format=j1| |markdown|## 🌤️ $1 实时天气\n\n| 项目 | 数值 |\n|------|------|\n| 🌡️ 温度 | {current_condition[0].temp_C}°C |\n| 🤒 体感 | {current_condition[0].FeelsLikeC}°C |\n| ☁️ 天气 | {current_condition[0].weatherDesc[0].value} |\n| 💧 湿度 | {current_condition[0].humidity}% |\n| 🌬️ 风速 | {current_condition[0].windspeedKmph} km/h |\n| 🧭 风向 | {current_condition[0].winddir16Point} |\n| 📊 气压 | {current_condition[0].pressure} hPa |\n| 👁️ 能见度 | {current_condition[0].visibility} km |\n| ☀️ 紫外线 | {current_condition[0].uvIndex} |\n| ☁️ 云量 | {current_condition[0].cloudcover}% |\n\n> 📅 查询时间:[datetime]\n> 🌐 数据来源:wttr.in # ============================================ # 2. 今日预报(单行模板) # ============================================ [正则]^今日天气\s*(.+)$ 回复:api:GET|https://wttr.in/$1?format=j1| |markdown|## 📅 $1 今日天气\n\n**当前实况:**\n- 🌡️ 温度:{current_condition[0].temp_C}°C(体感 {current_condition[0].FeelsLikeC}°C)\n- ☁️ 天气:{current_condition[0].weatherDesc[0].value}\n- 💧 湿度:{current_condition[0].humidity}%\n- 🌬️ 风速:{current_condition[0].windspeedKmph} km/h\n\n**今日预报:**\n- 🔥 最高:{weather[0].maxtempC}°C\n- ❄️ 最低:{weather[0].mintempC}°C\n- 🌅 日出:{weather[0].astronomy[0].sunrise}\n- 🌇 日落:{weather[0].astronomy[0].sunset}\n\n> 查询时间:[datetime] # ============================================ # 3. 固定城市快捷指令(单行模板) # ============================================ [精确]北京天气 回复:api:GET|https://wttr.in/Beijing?format=j1| |markdown|## 🌤️ 北京实时天气\n\n| 项目 | 数值 |\n|------|------|\n| 🌡️ 温度 | {current_condition[0].temp_C}°C |\n| 🤒 体感 | {current_condition[0].FeelsLikeC}°C |\n| ☁️ 天气 | {current_condition[0].weatherDesc[0].value} |\n| 💧 湿度 | {current_condition[0].humidity}% |\n| 🌬️ 风速 | {current_condition[0].windspeedKmph} km/h |\n| 🧭 风向 | {current_condition[0].winddir16Point} |\n| 📊 气压 | {current_condition[0].pressure} hPa |\n| 👁️ 能见度 | {current_condition[0].visibility} km |\n| ☀️ 紫外线 | {current_condition[0].uvIndex} |\n| ☁️ 云量 | {current_condition[0].cloudcover}% |\n\n> 查询时间:[datetime] [精确]上海天气 回复:api:GET|https://wttr.in/Shanghai?format=j1| |markdown|## 🌤️ 上海实时天气\n\n| 项目 | 数值 |\n|------|------|\n| 🌡️ 温度 | {current_condition[0].temp_C}°C |\n| 🤒 体感 | {current_condition[0].FeelsLikeC}°C |\n| ☁️ 天气 | {current_condition[0].weatherDesc[0].value} |\n| 💧 湿度 | {current_condition[0].humidity}% |\n| 🌬️ 风速 | {current_condition[0].windspeedKmph} km/h |\n| 🧭 风向 | {current_condition[0].winddir16Point} |\n| 📊 气压 | {current_condition[0].pressure} hPa |\n| 👁️ 能见度 | {current_condition[0].visibility} km |\n| ☀️ 紫外线 | {current_condition[0].uvIndex} |\n| ☁️ 云量 | {current_condition[0].cloudcover}% |\n\n> 查询时间:[datetime] [精确]广州天气 回复:api:GET|https://wttr.in/Guangzhou?format=j1| |markdown|## 🌤️ 广州实时天气\n\n| 项目 | 数值 |\n|------|------|\n| 🌡️ 温度 | {current_condition[0].temp_C}°C |\n| 🤒 体感 | {current_condition[0].FeelsLikeC}°C |\n| ☁️ 天气 | {current_condition[0].weatherDesc[0].value} |\n| 💧 湿度 | {current_condition[0].humidity}% |\n| 🌬️ 风速 | {current_condition[0].windspeedKmph} km/h |\n| 🧭 风向 | {current_condition[0].winddir16Point} |\n| 📊 气压 | {current_condition[0].pressure} hPa |\n| 👁️ 能见度 | {current_condition[0].visibility} km |\n| ☀️ 紫外线 | {current_condition[0].uvIndex} |\n| ☁️ 云量 | {current_condition[0].cloudcover}% |\n\n> 查询时间:[datetime] [精确]深圳天气 回复:api:GET|https://wttr.in/Shenzhen?format=j1| |markdown|## 🌤️ 深圳实时天气\n\n| 项目 | 数值 |\n|------|------|\n| 🌡️ 温度 | {current_condition[0].temp_C}°C |\n| 🤒 体感 | {current_condition[0].FeelsLikeC}°C |\n| ☁️ 天气 | {current_condition[0].weatherDesc[0].value} |\n| 💧 湿度 | {current_condition[0].humidity}% |\n| 🌬️ 风速 | {current_condition[0].windspeedKmph} km/h |\n| 🧭 风向 | {current_condition[0].winddir16Point} |\n| 📊 气压 | {current_condition[0].pressure} hPa |\n| 👁️ 能见度 | {current_condition[0].visibility} km |\n| ☀️ 紫外线 | {current_condition[0].uvIndex} |\n| ☁️ 云量 | {current_condition[0].cloudcover}% |\n\n> 查询时间:[datetime] # ============================================ # 4. 天气帮助 # ============================================ [精确]天气帮助 回复:markdown:## 🌤️ 天气查询帮助\n\n**使用方法:**\n- `天气 城市名` — 查询指定城市实时天气(Markdown表格)\n- `查天气 城市名` — 同上\n- `今日天气 城市名` — 含今日最高/最低温和日出日落时间\n\n**支持的城市名示例:**\n- 中文:`北京`、`上海`、`广州`、`深圳`\n- 英文:`London`、`New York`、`Tokyo`\n- 拼音:`beijing`、`shanghai`\n\n**固定快捷指令:**\n- `北京天气`、`上海天气`、`广州天气`、`深圳天气`\n\n> ⚠️ 需要 WordBankPlugin v3.2+ 支持模板语法\n> 🌐 数据来自 wttr.in(免费开源,约60次/分钟限制)\n> 🔧 如遇 "API返回格式错误",可能是城市名无效或服务暂时不可用 # ============================================ # 词库文件结束 # ============================================