diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/listeners/bush/joinAutoBan.ts | 4 | ||||
-rw-r--r-- | src/listeners/bush/userUpdateAutoBan.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/listeners/bush/joinAutoBan.ts b/src/listeners/bush/joinAutoBan.ts index 97145a4..3a85d17 100644 --- a/src/listeners/bush/joinAutoBan.ts +++ b/src/listeners/bush/joinAutoBan.ts @@ -14,9 +14,9 @@ export default class JoinAutoBanListener extends BushListener { if (member.guild.id !== client.consts.mappings.guilds.bush) return; const guild = member.guild; - if (member.user.username === 'NotEnoughUpdates') { + if (member.user.username.toLowerCase().includes('notenoughupdates')) { const res = await member.bushBan({ - reason: "[AutoBan] 'NotEnoughUpdates' is a blacklisted name for this server.", + reason: '[AutoBan] Impersonation is not allowed.', moderator: member.guild.me! }); diff --git a/src/listeners/bush/userUpdateAutoBan.ts b/src/listeners/bush/userUpdateAutoBan.ts index c187eb2..cd10144 100644 --- a/src/listeners/bush/userUpdateAutoBan.ts +++ b/src/listeners/bush/userUpdateAutoBan.ts @@ -12,7 +12,7 @@ export default class UserUpdateAutoBanListener extends BushListener { public override async exec(...[_oldUser, newUser]: BushClientEvents['userUpdate']): Promise<void> { if (!client.config.isProduction) return; - if (newUser.username === 'NotEnoughUpdates') { + if (newUser.username.toLowerCase().includes('notenoughupdates')) { const member = await client.guilds.cache .get(client.consts.mappings.guilds.bush) ?.members.fetch(newUser.id) @@ -22,7 +22,7 @@ export default class UserUpdateAutoBanListener extends BushListener { const guild = member.guild; const res = await member.bushBan({ - reason: "[AutoBan] 'NotEnoughUpdates' is a blacklisted name for this server.", + reason: '[AutoBan] Impersonation is not allowed.', moderator: member.guild.me! }); |