mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 05:30:07 +08:00
fix(bilibili): parse config
This commit is contained in:
parent
3225a2d6c7
commit
1a20ecb634
@ -118,12 +118,12 @@ func handleVideo(ctx *zero.Ctx) {
|
||||
}
|
||||
c, ok := ctx.State["manager"].(*ctrl.Control[*zero.Ctx])
|
||||
if ok && c.GetData(ctx.Event.GroupID)&enableHex == enableHex {
|
||||
summaryMsg, err := getVideoSummary(card)
|
||||
summaryMsg, err := getVideoSummary(cfg, card)
|
||||
if err != nil {
|
||||
msg = append(msg, message.Text("ERROR: ", err))
|
||||
} else {
|
||||
msg = append(msg, summaryMsg...)
|
||||
}
|
||||
} else {
|
||||
msg = append(msg, summaryMsg...)
|
||||
}
|
||||
}
|
||||
ctx.SendChain(msg...)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user