天气丰富一下
This commit is contained in:
@@ -445,7 +445,7 @@ class WeatherPlugin(MessagePluginInterface):
|
||||
cloud = int(data.get('cloud', 50))
|
||||
sunset = data.get('sunset', '')
|
||||
if cloud < 20 and "晴" in text_day:
|
||||
tips.append(f"<EFBFBD> 傍晚{sunset}左右可能有美丽的晚霞哦。")
|
||||
tips.append(f"🌄 傍晚{sunset}左右可能有美丽的晚霞哦。")
|
||||
|
||||
return tips
|
||||
|
||||
@@ -598,7 +598,7 @@ class WeatherPlugin(MessagePluginInterface):
|
||||
lines.append(f"💧 湿度{humidity}% | 🌬️ {wind_dir} {wind_scale}级 | 👀 能见度{vis}km")
|
||||
if today:
|
||||
lines.append(f"🗓️ 今日 {text_day} | {t_min}~{t_max}℃")
|
||||
lines.append(f"☀️ 日出{sunrise} | <EFBFBD> 日落{sunset}")
|
||||
lines.append(f"☀️ 日出{sunrise} | 🌄 日落{sunset}")
|
||||
lines.append(f"🔆 紫外线{uv} | 🌧️ 降水{precip}mm | ⏱️ 气压{pressure}hPa")
|
||||
if alerts:
|
||||
lines.append("")
|
||||
|
||||
Reference in New Issue
Block a user