From 42eab3390f7e2fcdc020eb1e3d602a46c9f34273 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Fri, 7 Jan 2022 16:19:02 -0500 Subject: update autoban --- src/listeners/bush/joinAutoBan.ts | 4 ++-- src/listeners/bush/userUpdateAutoBan.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 { 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! }); -- cgit