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))