feat: 更新权限系统

This commit is contained in:
lixiangwuxian
2024-10-20 02:46:56 +08:00
parent 03ee846b7a
commit 049b5774bf
15 changed files with 77 additions and 51 deletions

View File

@@ -6,13 +6,14 @@ import (
"strconv"
"time"
"git.lxtend.com/qqbot/constants"
"git.lxtend.com/qqbot/handler"
"git.lxtend.com/qqbot/model"
"golang.org/x/exp/rand"
)
func init() {
handler.RegisterHandler("roll", roll)
handler.RegisterHandler("roll", roll, constants.LEVEL_USER)
handler.RegisterHelpInform("roll", "roll点")
}