Skip to content

Commit

Permalink
fix(MustProvidePicture): empty url on future
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Mar 16, 2023
1 parent 3150b30 commit a2b6d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules.go
Expand Up @@ -269,7 +269,7 @@ func MustProvidePicture(ctx *Ctx) bool {
}
// 没有图片就索取
ctx.SendChain(message.Text("请发送一张图片"))
next := NewFutureEvent("message", 999, false, ctx.CheckSession(), HasPicture).Next()
next := NewFutureEvent("message", 999, true, ctx.CheckSession(), HasPicture).Next()
select {
case <-time.After(time.Second * 120):
return false
Expand Down

0 comments on commit a2b6d06

Please sign in to comment.