feat: 更新权限系统
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"git.lxtend.com/qqbot/constants"
|
||||
"git.lxtend.com/qqbot/handler"
|
||||
"git.lxtend.com/qqbot/model"
|
||||
"git.lxtend.com/qqbot/service/xibao"
|
||||
@@ -11,9 +12,9 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
handler.RegisterHandler("喜报", xiBao)
|
||||
handler.RegisterHandler("喜报", xiBao, constants.LEVEL_USER)
|
||||
handler.RegisterHelpInform("喜报", "喜报 [内容] 生成喜报图片,支持换行")
|
||||
handler.RegisterHandler("悲报", beiBao)
|
||||
handler.RegisterHandler("悲报", beiBao, constants.LEVEL_USER)
|
||||
handler.RegisterHelpInform("悲报", "悲报 [内容] 生成悲报图片,支持换行")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user