refactor: 移除查bl图命令相关的注册逻辑,并在 LastDiffToImage 函数中处理头像为 nil 的情况以避免潜在错误

This commit is contained in:
lixiangwuxian
2025-05-10 16:00:47 +08:00
parent 9e2b6b3162
commit 2ada30d859
2 changed files with 3 additions and 12 deletions

View File

@@ -20,8 +20,6 @@ import (
func init() {
handler.RegisterHandler("查bl", getMyBLPic, constants.LEVEL_USER)
handler.RegisterHelpInform("查bl", "beatleader", "查bl 查看您的最新分数")
// handler.RegisterHandler("查bl图", getMyBLPic, constants.LEVEL_USER)
// handler.RegisterHelpInform("查bl图", "beatleader", "查bl图 查看您的最新分数截图")
handler.RegisterHandler("绑定bl", bindBL, constants.LEVEL_USER)
handler.RegisterHelpInform("绑定bl", "beatleader", "绑定bl 绑定您的beatleader账号")
handler.RegisterHandler("解绑bl", unbindBL, constants.LEVEL_USER)