cowboy: optionally disable overlay command for now

This commit is contained in:
Chris Sexton 2022-07-23 00:19:15 -04:00
parent a64f4800b1
commit 93cfc0ddfb
1 changed files with 5 additions and 0 deletions

View File

@ -115,6 +115,11 @@ func (p *Cowboy) registerCmds(d *discord.Discord) {
if err := d.RegisterSlashCmd(cmd, p.mkOverlayCB(hat)); err != nil {
log.Error().Err(err).Msg("could not register cowboy command")
}
if p.c.GetInt("cowboy.overlaysEnabled", 0) == 0 {
return
}
cmd = discordgo.ApplicationCommand{
Name: "overlay",
Description: "overlay-ify an emojy",