From 131dcf553a0579f1fbef93bf6fa70f49f1bd7f12 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Fri, 18 Jul 2025 19:30:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=E9=87=8D=E5=90=AFbot=E7=9A=84?= =?UTF-8?q?=E6=9D=83=E9=99=90=E7=BA=A7=E5=88=AB=E4=BB=8E=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E6=9B=B4=E6=96=B0=E4=B8=BA=E5=8F=97=E4=BF=A1=E4=BB=BB?= =?UTF-8?q?=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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/restart/restart.go b/handler/restart/restart.go index 7e6ac18..c793375 100644 --- a/handler/restart/restart.go +++ b/handler/restart/restart.go @@ -26,7 +26,7 @@ var hasVaildBuild = true var stuffMutex sync.Mutex func init() { - handler.RegisterHandler("/重启bot", restart, constants.LEVEL_ADMIN) + handler.RegisterHandler("/重启bot", restart, constants.LEVEL_TRUSTED) handler.RegisterHelpInform("/重启bot", "热更新", "重启bot") handler.RegisterHandler("/构建bot", build, constants.LEVEL_ADMIN) handler.RegisterHelpInform("/构建bot", "热更新", "构建bot")