From 354fbb7cdd44f78cc92056b9c6f7737a9b421a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Thu, 5 May 2022 14:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=8A=BDn=E5=BC=A0=E5=A1=94?= =?UTF-8?q?=E7=BD=97=E7=89=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/tarot/tarot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/tarot/tarot.go b/plugin/tarot/tarot.go index 6a5c9d2d..81c5678e 100644 --- a/plugin/tarot/tarot.go +++ b/plugin/tarot/tarot.go @@ -39,7 +39,7 @@ func init() { PublicDataFolder: "Tarot", }).ApplySingle(ctxext.DefaultSingle) - engine.OnRegex(`^抽(\d{1,3}张)?塔罗牌$`, ctxext.DoOnceOnSuccess( + engine.OnRegex(`^抽(\d{1,2}张)?塔罗牌$`, ctxext.DoOnceOnSuccess( func(ctx *zero.Ctx) bool { data, err := engine.GetLazyData("tarots.json", true) if err != nil {