Forgot to remove that test thing
This commit is contained in:
parent
d0aa4c82fc
commit
ac2df5fb65
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ class guildMemberAddListener extends Listener {
|
||||||
|
|
||||||
let username = guild.user.username;
|
let username = guild.user.username;
|
||||||
let user = guild.user;
|
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]');
|
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;
|
user = username;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ class guildMemberRemoveListener extends Listener {
|
||||||
|
|
||||||
let username = guild.user.username;
|
let username = guild.user.username;
|
||||||
let user = guild.user;
|
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]');
|
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;
|
user = username;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue