mirror of https://github.com/velour/catbase.git
beers: booze->beer
This commit is contained in:
parent
dadb51cec5
commit
a671534d86
|
@ -22,6 +22,8 @@ import (
|
||||||
|
|
||||||
// This is a skeleton plugin to serve as an example and quick copy/paste for new plugins.
|
// This is a skeleton plugin to serve as an example and quick copy/paste for new plugins.
|
||||||
|
|
||||||
|
const itemName = ":beer:"
|
||||||
|
|
||||||
type BeersPlugin struct {
|
type BeersPlugin struct {
|
||||||
Bot bot.Bot
|
Bot bot.Bot
|
||||||
db *sqlx.DB
|
db *sqlx.DB
|
||||||
|
@ -212,7 +214,7 @@ func (p *BeersPlugin) Help(channel string, parts []string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func getUserBeers(db *sqlx.DB, user string) counter.Item {
|
func getUserBeers(db *sqlx.DB, user string) counter.Item {
|
||||||
booze, _ := counter.GetItem(db, user, "booze")
|
booze, _ := counter.GetItem(db, user, itemName)
|
||||||
return booze
|
return booze
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue