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