From 9dce80ab1648ed542d5a23b3bd081da7ed0e1ea9 Mon Sep 17 00:00:00 2001 From: Ben Richeson <36977340+Benricheson101@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:08:33 -0500 Subject: [PATCH] feat: check display name --- services/bot/lib/services/abusiveUserChecker.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/bot/lib/services/abusiveUserChecker.ts b/services/bot/lib/services/abusiveUserChecker.ts index c2ad632..b7f945c 100644 --- a/services/bot/lib/services/abusiveUserChecker.ts +++ b/services/bot/lib/services/abusiveUserChecker.ts @@ -62,6 +62,9 @@ export class AbusiveUserChecker { 'system', 'team', 'terms', + 'checkbio', + 'seebio', + 'byio', ]; return keywords.some(w => normalized.includes(w)); @@ -74,7 +77,8 @@ export class AbusiveUserChecker { m => !m.user.bot && !m.user.avatar?.startsWith('a_') && - this.checkUsername(m.user.username) + (this.checkUsername(m.user.username) || + (m.user.global_name && this.checkUsername(m.user.global_name))) ); const fromRedis = await this.client.state.abusiveUser.getMany(