Remove /points and /rank commands, updating /top command description and handler.

This commit is contained in:
2569718930@qq.com
2026-03-06 20:10:05 +08:00
parent bd333cf970
commit ab6b6d7974
+2 -2
View File
@@ -77,7 +77,7 @@ def start_bot():
"可用指令:\n"
f"/city [城市名] - 查询城市天气预测与实测 (消耗 {CITY_QUERY_COST} 积分)\n"
f"/deb [城市名] - 查看 DEB 融合预测准确率 (消耗 {DEB_QUERY_COST} 积分)\n"
"/points - 查看你的积分排行榜\n"
"/top - 查看积分排行榜\n"
"/id - 获取当前聊天的 Chat ID\n\n"
"示例: <code>/city 伦敦</code>\n"
f"💡 <i>提示: 群内有效发言满 {MESSAGE_MIN_LENGTH} 字,每次 +{MESSAGE_POINTS} 分,"
@@ -93,7 +93,7 @@ def start_bot():
parse_mode="HTML",
)
@bot.message_handler(commands=["points", "rank", "top"])
@bot.message_handler(commands=["top"])
def show_points(message):
"""显示当前用户的积分及排行榜"""
user = message.from_user