aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-07 16:19:02 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-07 16:19:02 -0500
commit42eab3390f7e2fcdc020eb1e3d602a46c9f34273 (patch)
treef8d82d1ae961e67d95eb5769a29ef0de3c420ecd
parentb4d6c2c94d1fb3f6646503834d5cecd9d68d113a (diff)
downloadtanzanite-42eab3390f7e2fcdc020eb1e3d602a46c9f34273.tar.gz
tanzanite-42eab3390f7e2fcdc020eb1e3d602a46c9f34273.tar.bz2
tanzanite-42eab3390f7e2fcdc020eb1e3d602a46c9f34273.zip
update autoban
-rw-r--r--src/listeners/bush/joinAutoBan.ts4
-rw-r--r--src/listeners/bush/userUpdateAutoBan.ts4
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!
});