diff --git a/handler/restart/restart.go b/handler/restart/restart.go index c793375..e966974 100644 --- a/handler/restart/restart.go +++ b/handler/restart/restart.go @@ -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", "热更新", "拉取最新代码")