From 4f7908370f91b89045ae68f21d7d16b6fa5f6986 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Thu, 16 Feb 2017 16:28:45 -0500 Subject: [PATCH] =?UTF-8?q?Change=20emoji=20=F0=9F=8D=B5=20to=20:tea:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/counter/counter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/counter/counter.go b/plugins/counter/counter.go index 64b78a3..9625dfb 100644 --- a/plugins/counter/counter.go +++ b/plugins/counter/counter.go @@ -137,15 +137,15 @@ func (p *CounterPlugin) Message(message msg.Message) bool { } if tea, _ := regexp.MatchString("(?i)^tea\\. [0-9A-Za-z_ ]*\\. (hot)|(iced)\\.?$", message.Body); tea { - item, err := GetItem(p.DB, nick, "🍵") + item, err := GetItem(p.DB, nick, ":tea:") if err != nil { - log.Printf("Error finding item %s.%s: %s.", nick, "🍵", err) + log.Printf("Error finding item %s.%s: %s.", nick, ":tea:", err) // Item ain't there, I guess return false } log.Printf("About to update item: %#v", item) item.UpdateDelta(1) - p.Bot.SendMessage(channel, fmt.Sprintf("bleep-bloop-blop... %s has %d 🍵", + p.Bot.SendMessage(channel, fmt.Sprintf("bleep-bloop-blop... %s has %d :tea:", nick, item.Count)) return true } else if message.Command && message.Body == "reset me" {