fix 设置语音模式

This commit is contained in:
源文雨 2023-04-10 11:56:24 +08:00
parent e224bf9252
commit 7ced79c6bb

View File

@ -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] param := ctx.State["regex_matched"].([]string)[1]
num := ctx.State["regex_matched"].([]string)[2] num := ctx.State["regex_matched"].([]string)[2]
n := 0 n := 0