diff --git a/plugins/beers/beers.go b/plugins/beers/beers.go index a2328ed..9da3e38 100644 --- a/plugins/beers/beers.go +++ b/plugins/beers/beers.go @@ -154,7 +154,8 @@ func (p *BeersPlugin) register() { return true }}, {Kind: bot.Message, IsCmd: true, - Regex: regexp.MustCompile(`(?i)^imbibe$`), + Regex: regexp.MustCompile(`(?i)^` + + strings.Join(p.c.GetArray("beers.imbibewords", []string{"imbibe", "quaff"}), "|") + `$`), Handler: func(r bot.Request) bool { p.addBeers(r.Msg.User.Name, 1) p.randomReply(r.Conn, r.Msg.Channel)