Browse Source

Add URL Whitelisting to Thanos since @MEE6 wants us to pay for it

master
Gregory Rudolph 2 years ago
parent
commit
d24ff86d68
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 14
      commands.go
  2. 19
      discordMessage.go
  3. 2
      tools/listen.go
  4. 2
      tools/runFunction.go
  5. 1
      types.go

14
commands.go

@ -92,6 +92,14 @@ func setupCommands() { @@ -92,6 +92,14 @@ func setupCommands() {
Help: "List activity for the discord. Supply a number to get the top N users (5 would be top 5 users) or all for all users!",
}
commands = append(commands, activityReport)
urlWhitelist := Command{
Name: "Whitelist URL",
RequiresAdmin: true,
Keywords: []string{"whitelist"},
Exec: WhitelistURL,
Help: "Add a domain to the HTTP whitelist domains are in the format `thisvid.com` without the subdomain.",
}