Added a beers-- action

This commit is contained in:
Chris Sexton 2013-01-22 12:36:43 -05:00
parent fbb4250ab7
commit 015a4018fe
1 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,10 @@ func (p *BeersPlugin) Message(message bot.Message) bool {
// no matter what, if we're in here, then we've responded
return true
} else if parts[0] == "beers--" {
p.setBeers(user, p.getBeers(user)-1)
p.Bot.SendAction(channel, "flushes")
return true
} else if parts[0] == "beers++" {
p.addBeers(nick)
p.randomReply(channel)