diff --git a/plugins/cowboy/cowboy.go b/plugins/cowboy/cowboy.go index 3231862..3685448 100644 --- a/plugins/cowboy/cowboy.go +++ b/plugins/cowboy/cowboy.go @@ -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",