fix: 将构建bot和构建重启的权限级别从管理员更新为受信任用户

This commit is contained in:
lixiangwuxian 2025-07-18 19:32:10 +08:00
parent 131dcf553a
commit 2607063bd5

View File

@ -28,9 +28,9 @@ var stuffMutex sync.Mutex
func init() {
handler.RegisterHandler("/重启bot", restart, constants.LEVEL_TRUSTED)
handler.RegisterHelpInform("/重启bot", "热更新", "重启bot")
handler.RegisterHandler("/构建bot", build, constants.LEVEL_ADMIN)
handler.RegisterHandler("/构建bot", build, constants.LEVEL_TRUSTED)
handler.RegisterHelpInform("/构建bot", "热更新", "构建bot")
handler.RegisterHandler("/构建重启", buildAndRestart, constants.LEVEL_ADMIN)
handler.RegisterHandler("/构建重启", buildAndRestart, constants.LEVEL_TRUSTED)
handler.RegisterHelpInform("/构建重启", "热更新", "构建并重启")
handler.RegisterHandler("/gitpull", pullCode, constants.LEVEL_USER)
handler.RegisterHelpInform("/gitpull", "热更新", "拉取最新代码")