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 }