feat: Implement city risk profile data collection and integrate it with the bot listener.

This commit is contained in:
2569718930@qq.com
2026-02-08 03:15:56 +08:00
parent 97589531e8
commit f2dac9b622
2 changed files with 11 additions and 8 deletions
+2 -1
View File
@@ -170,6 +170,7 @@ def get_city_risk_profile(city_name: str) -> dict:
"tor": "toronto",
"ank": "ankara",
"sel": "seoul",
"seo": "seoul",
"wel": "wellington",
"ba": "buenos aires",
"首尔": "seoul",
@@ -212,7 +213,7 @@ def format_risk_warning(profile: dict, temp_symbol: str) -> str:
# 典型偏差
if profile["typical_bias_f"] >= 1.0:
lines.append(f" 📊 典型偏差: ±{profile['typical_bias_f']}{temp_symbol}")
lines.append(f" 📊 偏差: ±{profile['typical_bias_f']}{temp_symbol}")
# 偏差方向说明
if profile["bias_direction"]: