From c7a3200a23c1649bff4b79bf020199d508a2971f Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Fri, 24 Apr 2020 16:27:08 -0400 Subject: [PATCH] achievements: add message for invalid awarding --- plugins/achievements/achievements.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/achievements/achievements.go b/plugins/achievements/achievements.go index 2c6e8ea..d7f6a42 100644 --- a/plugins/achievements/achievements.go +++ b/plugins/achievements/achievements.go @@ -125,6 +125,9 @@ func (p *AchievementsPlugin) message(c bot.Connector, kind bot.Kind, message msg msg := fmt.Sprintf("Congrats %s. You just got the %s award for %s.", receiver, emojy, a.Description) p.bot.Send(c, bot.Message, message.Channel, msg) + } else { + msg := fmt.Sprintf("Sorry, %s. %s owns that trophy.", nick, trophy.Creator) + p.bot.Send(c, bot.Message, message.Channel, msg) } return true }