From 015a4018fe623c658fe698dff7c97ba10a05c4e3 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Tue, 22 Jan 2013 12:36:43 -0500 Subject: [PATCH] Added a beers-- action --- plugins/beers.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/beers.go b/plugins/beers.go index cc4ac81..d1e8c8e 100644 --- a/plugins/beers.go +++ b/plugins/beers.go @@ -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)