From 3482c0c8e49b4fc91514b448ccb40902e4c82850 Mon Sep 17 00:00:00 2001 From: Chris Sexton <3216719+chrissexton@users.noreply.github.com> Date: Fri, 29 Jul 2022 07:00:54 -0400 Subject: [PATCH] roles: enable the set offering command --- plugins/roles/roles.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/roles/roles.go b/plugins/roles/roles.go index cecbb82..b8efb4e 100644 --- a/plugins/roles/roles.go +++ b/plugins/roles/roles.go @@ -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.+)$`), + Handler: p.setOffering, }, } p.b.Register(p, bot.Help, func(c bot.Connector, k bot.Kind, m msg.Message, args ...any) bool {