From 2607063bd50c7dc60ee48caf78ca5c164bc6615c Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Fri, 18 Jul 2025 19:32:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=E6=9E=84=E5=BB=BAbot=E5=92=8C?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E9=87=8D=E5=90=AF=E7=9A=84=E6=9D=83=E9=99=90?= =?UTF-8?q?=E7=BA=A7=E5=88=AB=E4=BB=8E=E7=AE=A1=E7=90=86=E5=91=98=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E4=B8=BA=E5=8F=97=E4=BF=A1=E4=BB=BB=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/restart/restart.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", "热更新", "拉取最新代码")