27 lines
603 B
Go
27 lines
603 B
Go
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,
|
|
}
|
|
}
|