fix: 将构建bot和构建重启的权限级别从管理员更新为受信任用户
This commit is contained in:
parent
131dcf553a
commit
2607063bd5
@ -28,9 +28,9 @@ var stuffMutex sync.Mutex
|
|||||||
func init() {
|
func init() {
|
||||||
handler.RegisterHandler("/重启bot", restart, constants.LEVEL_TRUSTED)
|
handler.RegisterHandler("/重启bot", restart, constants.LEVEL_TRUSTED)
|
||||||
handler.RegisterHelpInform("/重启bot", "热更新", "重启bot")
|
handler.RegisterHelpInform("/重启bot", "热更新", "重启bot")
|
||||||
handler.RegisterHandler("/构建bot", build, constants.LEVEL_ADMIN)
|
handler.RegisterHandler("/构建bot", build, constants.LEVEL_TRUSTED)
|
||||||
handler.RegisterHelpInform("/构建bot", "热更新", "构建bot")
|
handler.RegisterHelpInform("/构建bot", "热更新", "构建bot")
|
||||||
handler.RegisterHandler("/构建重启", buildAndRestart, constants.LEVEL_ADMIN)
|
handler.RegisterHandler("/构建重启", buildAndRestart, constants.LEVEL_TRUSTED)
|
||||||
handler.RegisterHelpInform("/构建重启", "热更新", "构建并重启")
|
handler.RegisterHelpInform("/构建重启", "热更新", "构建并重启")
|
||||||
handler.RegisterHandler("/gitpull", pullCode, constants.LEVEL_USER)
|
handler.RegisterHandler("/gitpull", pullCode, constants.LEVEL_USER)
|
||||||
handler.RegisterHelpInform("/gitpull", "热更新", "拉取最新代码")
|
handler.RegisterHelpInform("/gitpull", "热更新", "拉取最新代码")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user