mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
fix 设置语音模式
This commit is contained in:
parent
e224bf9252
commit
7ced79c6bb
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user