From 59926b6b9bed426c5be69e2d6b1246b40fe6be85 Mon Sep 17 00:00:00 2001 From: Rudi Date: Tue, 9 Aug 2022 13:19:25 -0400 Subject: [PATCH] Add domains to output --- commands.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands.go b/commands.go index 720f65c..337a31a 100644 --- a/commands.go +++ b/commands.go @@ -293,5 +293,7 @@ func Status(b BotCommand) bool { func WhitelistURL(b BotCommand) bool { defer log.PanicSafe() config.WhitelistURLs = append(config.WhitelistURLs, strings.ReplaceAll(b.Message.Content, b.Command, "")) + domains := strings.Join(config.WhitelistURLs, "\n") + b.Session.ChannelMessageSend(config.AdminChannel, fmt.Sprintf("Current whitelisted domains: %+v", domains)) return true; } \ No newline at end of file