mirror of https://github.com/velour/catbase.git
achievements: add message for invalid awarding
This commit is contained in:
parent
e91d0bdf95
commit
c7a3200a23
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue