mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-20 14:30:10 +08:00
fix
This commit is contained in:
parent
30301f1aba
commit
436838d2f8
@ -188,10 +188,10 @@ func init() {
|
|||||||
r.Header.Set("Authorization", alpacatoken)
|
r.Header.Set("Authorization", alpacatoken)
|
||||||
return nil
|
return nil
|
||||||
}, bytes.NewReader(binary.NewWriterF(func(writer *binary.Writer) {
|
}, bytes.NewReader(binary.NewWriterF(func(writer *binary.Writer) {
|
||||||
_ = json.NewEncoder(writer).Encode(&alpacamsg{
|
_ = json.NewEncoder(writer).Encode(&[]alpacamsg{{
|
||||||
Name: ctx.CardOrNickName(ctx.Event.UserID),
|
Name: ctx.CardOrNickName(ctx.Event.UserID),
|
||||||
Message: msg,
|
Message: msg,
|
||||||
})
|
}})
|
||||||
})))
|
})))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Warnln("[chat] 🦙 err:", err)
|
logrus.Warnln("[chat] 🦙 err:", err)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user