refactor: 重构数据库逻辑

This commit is contained in:
lixiangwuxian
2024-10-11 00:14:11 +08:00
parent 7aebdeae56
commit 769308389a
16 changed files with 289 additions and 164 deletions

View File

@@ -0,0 +1,26 @@
package beatleader
import (
"git.lxtend.com/qqbot/handler"
"git.lxtend.com/qqbot/model"
)
func init() {
handler.RegisterHandler("查bl", getMyBL)
// handler.RegisterHandler("绑定bl", bindBL)
// handler.RegisterHandler("解绑bl", unbindSS)
// handler.RegisterHandler("最新bl", getMyRecentScore)
// handler.RegisterHandler("最热bl", getRecentScore)
}
func getMyBL(msg model.Message) (reply model.Reply) {
if len(msg.Msg) <= len("查bl ") {
return model.Reply{}
}
bindResult := ""
return model.Reply{
ReplyMsg: bindResult,
ReferOriginMsg: true,
FromMsg: msg,
}
}