Forgot to remove that test thing

This commit is contained in:
loicbersier 2019-12-26 17:29:22 +01:00
parent d0aa4c82fc
commit ac2df5fb65
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ class guildMemberAddListener extends Listener {
let username = guild.user.username;
let user = guild.user;
if (guild.guild.member(guild.user).nickname.match(invite)) {
if (username.match(invite)) {
username = username.replace(/(https?:\/\/)?(www\.)?discord(?:app\.com|\.gg)[/invite/]?(?:(?!.*[Ii10OolL]).[a-zA-Z0-9]{5,6}|[a-zA-Z0-9-]{2,32})/g, '[REDACTED]');
user = username;
}

View file

@ -21,7 +21,7 @@ class guildMemberRemoveListener extends Listener {
let username = guild.user.username;
let user = guild.user;
if (guild.guild.member(guild.user).nickname.match(invite)) {
if (username.match(invite)) {
username = username.replace(/(https?:\/\/)?(www\.)?discord(?:app\.com|\.gg)[/invite/]?(?:(?!.*[Ii10OolL]).[a-zA-Z0-9]{5,6}|[a-zA-Z0-9-]{2,32})/g, '[REDACTED]');
user = username;
}