mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 05:30:07 +08:00
fix: 设精
This commit is contained in:
parent
85f5fb2d87
commit
644a6cdcc2
@ -583,7 +583,7 @@ func init() { // 插件主体
|
||||
}
|
||||
})
|
||||
// 设精
|
||||
engine.OnRegex(`^\[CQ:reply,id=(\d+)\].*(设置|取消)精华$`, zero.OnlyGroup, zero.AdminPermission).SetBlock(true).Limit(ctxext.LimitByUser).Handle(func(ctx *zero.Ctx) {
|
||||
engine.OnRegex(`^\[CQ:reply,id=(\d+)\][\s\S]*(设置|取消)精华$`, zero.OnlyGroup, zero.AdminPermission).SetBlock(true).Limit(ctxext.LimitByUser).Handle(func(ctx *zero.Ctx) {
|
||||
essenceID, _ := strconv.ParseInt(ctx.State["regex_matched"].([]string)[1], 10, 64)
|
||||
option := ctx.State["regex_matched"].([]string)[2]
|
||||
var rsp zero.APIResponse
|
||||
|
||||
Loading…
Reference in New Issue
Block a user