1
0
mirror of https://github.com/FloatTech/zbpwife.git synced 2026-03-20 12:01:49 +09:00

- 更多waifu

- 风控处理
This commit is contained in:
莫思敛
2022-10-15 00:16:07 +08:00
parent b59ee712ad
commit b11fae97d7
39 changed files with 334 additions and 155 deletions

View File

@@ -53,11 +53,15 @@ func init() {
i := fcext.RandSenderPerDayN(ctx.Event.UserID, len(cardMap))
card := cardMap[(strconv.Itoa(i))]
ctx.SendChain(
if id := ctx.SendChain(
message.At(ctx.Event.UserID),
message.Text("今天的二次元老婆是~【", card.Name, "】哒"),
message.Image("file:///"+datapath+card.URL),
// message.Text("\n【", card.Lines[rand.Intn(len(card.Lines))], "】"),
)
); id.ID() == 0 {
ctx.SendChain(
message.At(ctx.Event.UserID),
message.Text("今天的二次元老婆是~【", card.Name, "】哒\n【图片发送失败请联系维护者~】"))
}
})
}