Skip to content

Commit

Permalink
fix 设置语音模式
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Apr 10, 2023
1 parent 7ced79c commit 7b1d2b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/ai_reply/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func init() { // 插件主体
}
})

ent.OnRegex(`^设置语音模式\s*(\S\D*)\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
Expand Down Expand Up @@ -147,7 +147,7 @@ func init() { // 插件主体
ctx.SendChain(message.Reply(ctx.Event.MessageID), message.Text("设置成功"))
})

ent.OnRegex(`^设置默认语音模式\s*([\S\D]*)\s*(\d*)$`, zero.SuperUserPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) {
ent.OnRegex(`^设置默认语音模式\s*([\S\D]*)\s+(\d*)$`, zero.SuperUserPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) {
param := ctx.State["regex_matched"].([]string)[1]
num := ctx.State["regex_matched"].([]string)[2]
n := 0
Expand Down

0 comments on commit 7b1d2b7

Please sign in to comment.