mirror of https://github.com/velour/catbase.git
roles: enable the set offering command
This commit is contained in:
parent
c3e1a72f9a
commit
3482c0c8e4
|
@ -46,10 +46,9 @@ func (p *RolesPlugin) Register() {
|
||||||
Handler: p.lsRoles,
|
Handler: p.lsRoles,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Kind: bot.Help, IsCmd: true,
|
Kind: bot.Message, IsCmd: true,
|
||||||
Regex: regexp.MustCompile(`.`),
|
Regex: regexp.MustCompile(`(?i)^setoffering (?P<offering>.+)$`),
|
||||||
HelpText: "Lists roles with an optional offering set specifier",
|
Handler: p.setOffering,
|
||||||
Handler: p.lsRoles,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
p.b.Register(p, bot.Help, func(c bot.Connector, k bot.Kind, m msg.Message, args ...any) bool {
|
p.b.Register(p, bot.Help, func(c bot.Connector, k bot.Kind, m msg.Message, args ...any) bool {
|
||||||
|
|
Loading…
Reference in New Issue