mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-20 22:40:23 +08:00
parent
8e8464d727
commit
df8a320fbe
@ -241,7 +241,7 @@ func init() {
|
|||||||
config.Groups[ctx.Event.GroupID] = group
|
config.Groups[ctx.Event.GroupID] = group
|
||||||
ctx.SendChain(message.At(ctx.Event.UserID), message.Text(fmt.Sprintf("本群%s已%s", k2, k1)))
|
ctx.SendChain(message.At(ctx.Event.UserID), message.Text(fmt.Sprintf("本群%s已%s", k2, k1)))
|
||||||
})
|
})
|
||||||
engine.OnRegex(`^配置BDAKey\s*(.*)\s*(.*)$`, zero.SuperUserPermission).SetBlock(true).
|
engine.OnRegex(`^配置BDAKey\s(.*)\s(.*)$`, zero.SuperUserPermission).SetBlock(true).
|
||||||
Handle(func(ctx *zero.Ctx) {
|
Handle(func(ctx *zero.Ctx) {
|
||||||
k1 := ctx.State["regex_matched"].([]string)[1]
|
k1 := ctx.State["regex_matched"].([]string)[1]
|
||||||
k2 := ctx.State["regex_matched"].([]string)[2]
|
k2 := ctx.State["regex_matched"].([]string)[2]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user