roles: enable the set offering command

This commit is contained in:
Chris Sexton 2022-07-29 07:00:54 -04:00
parent c3e1a72f9a
commit 3482c0c8e4
1 changed files with 3 additions and 4 deletions

View File

@ -46,10 +46,9 @@ func (p *RolesPlugin) Register() {
Handler: p.lsRoles,
},
{
Kind: bot.Help, IsCmd: true,
Regex: regexp.MustCompile(`.`),
HelpText: "Lists roles with an optional offering set specifier",
Handler: p.lsRoles,
Kind: bot.Message, IsCmd: true,
Regex: regexp.MustCompile(`(?i)^setoffering (?P<offering>.+)$`),
Handler: p.setOffering,
},
}
p.b.Register(p, bot.Help, func(c bot.Connector, k bot.Kind, m msg.Message, args ...any) bool {