mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-20 06:20:08 +08:00
fix: drawlots
This commit is contained in:
parent
09a3e807c9
commit
960cd3ad8b
@ -67,7 +67,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
ctx.SendChain(message.Image("base64://" + helper.BytesToString(textPic)))
|
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]
|
lotsType := ctx.State["regex_matched"].([]string)[1]
|
||||||
fileInfo, ok := lotsList[lotsType]
|
fileInfo, ok := lotsList[lotsType]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user