mirror of https://github.com/velour/catbase.git
Whoops, we want nicks not users
This commit is contained in:
parent
015a4018fe
commit
8ffac9291b
|
@ -70,7 +70,7 @@ func (l *Logger) Run() {
|
|||
}
|
||||
}
|
||||
|
||||
// User type stores user history. This is a vehicle that will follow the user for the active
|
||||
// User type stores user history. This is a vehicle that will follow the user for the active
|
||||
// session
|
||||
type User struct {
|
||||
// Current nickname known
|
||||
|
|
|
@ -121,7 +121,7 @@ func (p *BeersPlugin) Message(message bot.Message) bool {
|
|||
// no matter what, if we're in here, then we've responded
|
||||
return true
|
||||
} else if parts[0] == "beers--" {
|
||||
p.setBeers(user, p.getBeers(user)-1)
|
||||
p.setBeers(nick, p.getBeers(nick)-1)
|
||||
p.Bot.SendAction(channel, "flushes")
|
||||
return true
|
||||
} else if parts[0] == "beers++" {
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// The factoid plugin provides a learning system to the bot so that it can
|
||||
// The factoid plugin provides a learning system to the bot so that it can
|
||||
// respond to queries in a way that is unpredictable and fun
|
||||
|
||||
// factoid stores info about our factoid for lookup and later interaction
|
||||
|
|
Loading…
Reference in New Issue