diff options
Diffstat (limited to 'pkg/discord/commands.go')
| -rw-r--r-- | pkg/discord/commands.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/discord/commands.go b/pkg/discord/commands.go index d306668..5d33786 100644 --- a/pkg/discord/commands.go +++ b/pkg/discord/commands.go @@ -5,6 +5,7 @@ package discord import ( "github.com/bwmarrin/discordgo" + "github.com/spf13/viper" "log" ) @@ -50,4 +51,8 @@ func SetupCommands() { log.Printf("Created command '%v'", v.Name) } } + + if viper.GetBool("discord.account.cleanup_app_commands") { + CleanupCommands() + } } |