achievements: add message for invalid awarding

This commit is contained in:
Chris Sexton 2020-04-24 16:27:08 -04:00 committed by Chris Sexton
parent e91d0bdf95
commit c7a3200a23
1 changed files with 3 additions and 0 deletions

View File

@ -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.", msg := fmt.Sprintf("Congrats %s. You just got the %s award for %s.",
receiver, emojy, a.Description) receiver, emojy, a.Description)
p.bot.Send(c, bot.Message, message.Channel, msg) 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 return true
} }