feat: 更新权限系统
This commit is contained in:
@@ -3,6 +3,7 @@ package jrrp
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.lxtend.com/qqbot/constants"
|
||||
"git.lxtend.com/qqbot/handler"
|
||||
"git.lxtend.com/qqbot/model"
|
||||
"git.lxtend.com/qqbot/service/jrrp"
|
||||
@@ -12,8 +13,8 @@ var jrrpInstance *jrrp.Jrrp
|
||||
|
||||
func init() {
|
||||
jrrpInstance = jrrp.NewJrrp()
|
||||
handler.RegisterHandler("今日人品", jrrpHandler)
|
||||
handler.RegisterHandler("jrrp", jrrpHandler)
|
||||
handler.RegisterHandler("今日人品", jrrpHandler, constants.LEVEL_USER)
|
||||
handler.RegisterHandler("jrrp", jrrpHandler, constants.LEVEL_USER)
|
||||
handler.RegisterHelpInform("今日人品/jrrp", "今日人品或jrrp 查询今日人品")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user