Added commetn to untappd checkin

This commit is contained in:
Chris Sexton 2012-12-09 18:25:25 -05:00
parent a05252a2b0
commit c8f999ac9d
1 changed files with 4 additions and 0 deletions

View File

@ -349,6 +349,10 @@ func (p *BeersPlugin) checkUntappd(channel string) {
msg := fmt.Sprintf("%s just drank %s by %s%s, bringing his drunkeness to %d", msg := fmt.Sprintf("%s just drank %s by %s%s, bringing his drunkeness to %d",
user.ChanNick, beerName, breweryName, venue, drunken) user.ChanNick, beerName, breweryName, venue, drunken)
if checkin.Checkin_comment != "" {
msg = fmt.Sprintf("%s -- %s",
msg, checkin.Checkin_comment)
}
fmt.Println(msg) fmt.Println(msg)
p.Bot.SendMessage(channel, msg) p.Bot.SendMessage(channel, msg)