From 7ced79c6bbdd180cd9c707c85001be500c06e846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Mon, 10 Apr 2023 11:56:24 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=AE=BE=E7=BD=AE=E8=AF=AD=E9=9F=B3?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/ai_reply/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/ai_reply/main.go b/plugin/ai_reply/main.go index 2585b8c2..d94a3549 100644 --- a/plugin/ai_reply/main.go +++ b/plugin/ai_reply/main.go @@ -104,7 +104,7 @@ func init() { // 插件主体 } }) - ent.OnRegex(`^设置语音模式\s*(.*)\s+(\d*)$`, zero.AdminPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) { + ent.OnRegex(`^设置语音模式\s*(\S\D*)\s+(\d*)$`, zero.AdminPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) { param := ctx.State["regex_matched"].([]string)[1] num := ctx.State["regex_matched"].([]string)[2] n := 0