From 960cd3ad8b0c680014ed818f04ee556b46f7db60 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, 9 Mar 2023 13:56:51 +0800 Subject: [PATCH] fix: drawlots --- plugin/drawlots/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/drawlots/main.go b/plugin/drawlots/main.go index aa13785e..d396b5de 100644 --- a/plugin/drawlots/main.go +++ b/plugin/drawlots/main.go @@ -67,7 +67,7 @@ func init() { } ctx.SendChain(message.Image("base64://" + helper.BytesToString(textPic))) }) - en.OnRegex(`^抽(.*)签$`).SetBlock(true).Handle(func(ctx *zero.Ctx) { + en.OnRegex(`^抽(.+)签$`).SetBlock(true).Handle(func(ctx *zero.Ctx) { lotsType := ctx.State["regex_matched"].([]string)[1] fileInfo, ok := lotsList[lotsType] if !ok {