beers: booze->beer

This commit is contained in:
Chris Sexton 2018-01-05 16:54:12 -05:00
parent dadb51cec5
commit a671534d86
1 changed files with 3 additions and 1 deletions

View File

@ -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
}