Skip to content

Commit

Permalink
优化wife
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Mar 25, 2023
1 parent b4a1f93 commit 4a15326
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/wife/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package wife

import (
"encoding/json"
"strings"

fcext "github.com/FloatTech/floatbox/ctxext"
ctrl "github.com/FloatTech/zbpctrl"
Expand Down Expand Up @@ -40,6 +41,7 @@ func init() {
Handle(func(ctx *zero.Ctx) {
card := cards[fcext.RandSenderPerDayN(ctx.Event.UserID, len(cards))]
data, err := engine.GetLazyData("wives/"+card, true)
card, _, _ = strings.Cut(card, ".")
if err != nil {
ctx.SendChain(
message.At(ctx.Event.UserID),
Expand Down

0 comments on commit 4a15326

Please sign in to comment.