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
644a6cdcc2
commit
d185de0f3d
@ -583,7 +583,7 @@ func init() { // 插件主体
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
// 设精
|
// 设精
|
||||||
engine.OnRegex(`^\[CQ:reply,id=(\d+)\][\s\S]*(设置|取消)精华$`, 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)
|
essenceID, _ := strconv.ParseInt(ctx.State["regex_matched"].([]string)[1], 10, 64)
|
||||||
option := ctx.State["regex_matched"].([]string)[2]
|
option := ctx.State["regex_matched"].([]string)[2]
|
||||||
var rsp zero.APIResponse
|
var rsp zero.APIResponse
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user