mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-20 06:20:08 +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)
|
logrus.Warnln("[emojimix] copy err:", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
_ = enc.Close()
|
err = enc.Close()
|
||||||
ctx.SendChain(message.Image(binary.BytesToString(buf.Bytes())))
|
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)
|
resp, err := http2.Get(u1)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
@ -53,12 +57,14 @@ func init() {
|
|||||||
_ = resp.Body.Close()
|
_ = resp.Body.Close()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
logrus.Warnln("[emojimix] http get u1 err:", err)
|
||||||
resp, err = http2.Get(u2)
|
resp, err = http2.Get(u2)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
send(resp)
|
send(resp)
|
||||||
_ = resp.Body.Close()
|
_ = resp.Body.Close()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
logrus.Warnln("[emojimix] http get u2 err:", err)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user