From d0eaa2a400d7122518e3260d767200aa961879be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E6=9F=B3=E7=85=9C?= <101934327+fangliuyu@users.noreply.github.com> Date: Sun, 3 Sep 2023 18:46:07 +0800 Subject: [PATCH] Update fish.go --- plugin/mcfish/fish.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugin/mcfish/fish.go b/plugin/mcfish/fish.go index b6c99b0900..a6909bdfbd 100644 --- a/plugin/mcfish/fish.go +++ b/plugin/mcfish/fish.go @@ -302,20 +302,22 @@ func init() { } if len(thingNameList) == 1 { thingName := "" + numberOfFish := 0 for name := range thingNameList { thingName = name + numberOfFish = number } if picName != "" { pic, err := engine.GetLazyData(picName+".png", false) if err != nil { logrus.Warnln("[mcfish]error:", err) - ctx.SendChain(message.At(uid), message.Text("恭喜你钓到了", thingName, "\n", msg)) + ctx.SendChain(message.At(uid), message.Text("恭喜你钓到了", numberOfFish,thingName, "\n", msg)) return } - ctx.SendChain(message.At(uid), message.Text("恭喜你钓到了", thingName, "\n", msg), message.ImageBytes(pic)) + ctx.SendChain(message.At(uid), message.Text("恭喜你钓到了",numberOfFish, thingName, "\n", msg), message.ImageBytes(pic)) return } - ctx.SendChain(message.At(uid), message.Text("恭喜你钓到了", thingName, "\n", msg)) + ctx.SendChain(message.At(uid), message.Text("恭喜你钓到了",numberOfFish, thingName, "\n", msg)) return } msgInfo := make(message.Message, 0, 3+len(thingNameList))