mirror of https://github.com/velour/catbase.git
cowboy: optionally disable overlay command for now
This commit is contained in:
parent
a64f4800b1
commit
93cfc0ddfb
|
@ -115,6 +115,11 @@ func (p *Cowboy) registerCmds(d *discord.Discord) {
|
||||||
if err := d.RegisterSlashCmd(cmd, p.mkOverlayCB(hat)); err != nil {
|
if err := d.RegisterSlashCmd(cmd, p.mkOverlayCB(hat)); err != nil {
|
||||||
log.Error().Err(err).Msg("could not register cowboy command")
|
log.Error().Err(err).Msg("could not register cowboy command")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if p.c.GetInt("cowboy.overlaysEnabled", 0) == 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
cmd = discordgo.ApplicationCommand{
|
cmd = discordgo.ApplicationCommand{
|
||||||
Name: "overlay",
|
Name: "overlay",
|
||||||
Description: "overlay-ify an emojy",
|
Description: "overlay-ify an emojy",
|
||||||
|
|
Loading…
Reference in New Issue