Skip to content

Commit

Permalink
fix: image pool on LLOB
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed May 4, 2024
1 parent a0322fb commit d8208d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions img/pool/img.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"net/http"
"regexp"
"strings"
"time"

"github.com/sirupsen/logrus"
"github.com/wdvxdr1123/ZeroBot/message"
Expand Down Expand Up @@ -118,6 +119,7 @@ func (m *Image) Push(send ctxext.NoCtxSendMsg, get ctxext.NoCtxGetMsg) (err erro
if get == nil {
return
}
time.Sleep(2 * time.Second) // LLOneBot get_msg delay
msg := get(id)
for _, e := range msg.Elements {
if e.Type == "image" {
Expand Down

0 comments on commit d8208d1

Please sign in to comment.