fix: regex error (#965)

* fix regex

* fix regex error
This commit is contained in:
copurxia
2024-08-23 11:29:39 +08:00
committed by GitHub
parent ac909f95db
commit 074e77dfa2
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ func init() {
})
// 打劫功能
engine.OnRegex(`^打劫\[CQ:at,(?:\S*,)?qq=(\d+)(?:,\S*)?\]|(\d+))`, getdb).SetBlock(true).Limit(ctxext.LimitByUser).
engine.OnRegex(`^打劫\s?(\[CQ:at,(?:\S*,)?qq=(\d+)(?:,\S*)?\]|(\d+))`, getdb).SetBlock(true).Limit(ctxext.LimitByUser).
Handle(func(ctx *zero.Ctx) {
uid := ctx.Event.UserID
fiancee := ctx.State["regex_matched"].([]string)