Add domains to output
This commit is contained in:
@ -293,5 +293,7 @@ func Status(b BotCommand) bool {
|
|||||||
func WhitelistURL(b BotCommand) bool {
|
func WhitelistURL(b BotCommand) bool {
|
||||||
defer log.PanicSafe()
|
defer log.PanicSafe()
|
||||||
config.WhitelistURLs = append(config.WhitelistURLs, strings.ReplaceAll(b.Message.Content, b.Command, ""))
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user