feat: 更新权限系统
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"git.lxtend.com/qqbot/constants"
|
||||
"git.lxtend.com/qqbot/handler"
|
||||
"git.lxtend.com/qqbot/model"
|
||||
"git.lxtend.com/qqbot/util"
|
||||
@@ -18,7 +19,7 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
handler.RegisterHandler("校长", headmasterHandler)
|
||||
handler.RegisterHandler("校长", headmasterHandler, constants.LEVEL_USER)
|
||||
handler.RegisterPrivateHandler(headmasterHandler)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user