mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 05:30:07 +08:00
fix(emojimix): add more logs
This commit is contained in:
parent
803c027264
commit
a4094cca64
@ -44,8 +44,12 @@ func init() {
|
||||
logrus.Warnln("[emojimix] copy err:", err)
|
||||
return
|
||||
}
|
||||
_ = enc.Close()
|
||||
ctx.SendChain(message.Image(binary.BytesToString(buf.Bytes())))
|
||||
err = enc.Close()
|
||||
if err != nil {
|
||||
logrus.Warnln("[emojimix] close enc err:", err)
|
||||
return
|
||||
}
|
||||
ctx.SendChain(message.Image(binary.BytesToString(buf.Bytes()), ctx.Event.Message.String()))
|
||||
}
|
||||
resp, err := http2.Get(u1)
|
||||
if err == nil {
|
||||
@ -53,12 +57,14 @@ func init() {
|
||||
_ = resp.Body.Close()
|
||||
return
|
||||
}
|
||||
logrus.Warnln("[emojimix] http get u1 err:", err)
|
||||
resp, err = http2.Get(u2)
|
||||
if err == nil {
|
||||
send(resp)
|
||||
_ = resp.Body.Close()
|
||||
return
|
||||
}
|
||||
logrus.Warnln("[emojimix] http get u2 err:", err)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user