From ab6b6d7974f7387ee2de7088d2905981ca2d666e Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Fri, 6 Mar 2026 20:10:05 +0800 Subject: [PATCH] Remove `/points` and `/rank` commands, updating `/top` command description and handler. --- bot_listener.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot_listener.py b/bot_listener.py index cbfb5e9d..44253aa6 100644 --- a/bot_listener.py +++ b/bot_listener.py @@ -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" "示例: /city 伦敦\n" f"💡 提示: 群内有效发言满 {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