🐛 fix: image finder

This commit is contained in:
fumiama
2022-02-14 17:06:54 +08:00
parent 37033fe48d
commit 8660d8d990
2 changed files with 54 additions and 84 deletions

View File

@@ -165,11 +165,11 @@ func init() {
}
m.SetFile(file.BOTPATH + "/" + cachefile)
hassent, err := m.Push(ctxext.Send(ctx), ctxext.GetMessage(ctx))
if err != nil {
ctx.SendChain(message.Text("ERROR: ", err))
if hassent {
return
}
if hassent {
if err != nil {
ctx.SendChain(message.Text("ERROR: ", err))
return
}
}