From a671534d863294e9debf207aa7c472e5482a5f5f Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Fri, 5 Jan 2018 16:54:12 -0500 Subject: [PATCH] beers: booze->beer --- plugins/beers/beers.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/beers/beers.go b/plugins/beers/beers.go index f68c9c1..3b1b1b0 100644 --- a/plugins/beers/beers.go +++ b/plugins/beers/beers.go @@ -22,6 +22,8 @@ import ( // This is a skeleton plugin to serve as an example and quick copy/paste for new plugins. +const itemName = ":beer:" + type BeersPlugin struct { Bot bot.Bot db *sqlx.DB @@ -212,7 +214,7 @@ func (p *BeersPlugin) Help(channel string, parts []string) { } func getUserBeers(db *sqlx.DB, user string) counter.Item { - booze, _ := counter.GetItem(db, user, "booze") + booze, _ := counter.GetItem(db, user, itemName) return booze }