aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-06-02 02:30:27 +0100
committerGravatar GitHub <[email protected]>2021-06-02 01:30:27 +0000
commit13cdd562f6c586c2b5a47a021141c729712427eb (patch)
tree7368606047b58b83adc482efc70ac23ffe39a99c
parentMerge #1608 - enforce one help channel per user (diff)
Add discord.li to invite filter (#1616)
Discord.li is an alias for discord.io, a domain already on the denylist.
-rw-r--r--bot/utils/regex.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/utils/regex.py b/bot/utils/regex.py
index 0d2068f90..a8efe1446 100644
--- a/bot/utils/regex.py
+++ b/bot/utils/regex.py
@@ -5,6 +5,7 @@ INVITE_RE = re.compile(
r"discord(?:[\.,]|dot)com(?:\/|slash)invite|" # or discord.com/invite/
r"discordapp(?:[\.,]|dot)com(?:\/|slash)invite|" # or discordapp.com/invite/
r"discord(?:[\.,]|dot)me|" # or discord.me
+ r"discord(?:[\.,]|dot)li|" # or discord.li
r"discord(?:[\.,]|dot)io" # or discord.io.
r")(?:[\/]|slash)" # / or 'slash'
r"([a-zA-Z0-9\-]+)", # the invite code itself