|
|
|
@ -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; |
|
|
|
|
} |