mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-11 17:50:25 +00:00
fix:修复猜单词插件最后一轮无法正常发送的错误 (#1039)
This commit is contained in:
@@ -235,10 +235,6 @@ func newWordleGame(target string) func(string) (bool, []byte, error) {
|
||||
}
|
||||
}
|
||||
record = append(record, s)
|
||||
if len(record) >= cap(record) {
|
||||
err = errTimesRunOut
|
||||
return
|
||||
}
|
||||
}
|
||||
var side = 20
|
||||
var space = 10
|
||||
@@ -269,6 +265,10 @@ func newWordleGame(target string) func(string) (bool, []byte, error) {
|
||||
}
|
||||
}
|
||||
data, err = imgfactory.ToBytes(ctx.Image())
|
||||
if len(record) >= cap(record) {
|
||||
err = errTimesRunOut
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user