From 97966edabcc1f0b3f81b4a15a4226eef08174887 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 5 Jul 2021 20:57:36 -0700 Subject: feat(discord): even more optional command cleanup --- pkg/discord/commands.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/discord/commands.go') 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() + } } -- cgit v1.2.3