diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 232c490e..bbc0bff8 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,13 +1,7 @@ - - - - - - - + + + + true diff --git a/plugin_ai_false/ai_false.go b/plugin_ai_false/ai_false.go index 0dffa3f6..b0421852 100644 --- a/plugin_ai_false/ai_false.go +++ b/plugin_ai_false/ai_false.go @@ -16,7 +16,7 @@ import ( ) func init() { // 插件主体 - zero.OnFullMatchGroup([]string{"检查身体", "自检", "启动自检", "系统状态"}). + zero.OnFullMatchGroup([]string{"检查身体", "自检", "启动自检", "系统状态"}, zero.AdminPermission). Handle(func(ctx *zero.Ctx) { ctx.SendChain(message.Text( "* CPU占用率: ", getCpuPercent(), "%\n",