Browse Source

Add domains to output

master
Gregory Rudolph 2 years ago
parent
commit
59926b6b9b
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 2
      commands.go

2
commands.go

@ -293,5 +293,7 @@ func Status(b BotCommand) bool { @@ -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;
}
Loading…
Cancel
Save