Skip to content

Commit

Permalink
fix(bilibili): parse config
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed May 4, 2024
1 parent 3225a2d commit 1a20ecb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/bilibili/bilibili_parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
}
Expand Down

0 comments on commit 1a20ecb

Please sign in to comment.