From 632d7913f62eacbba1e642c1f03c0f98655583d9 Mon Sep 17 00:00:00 2001 From: Lukas | AstroGD <35271072+AstroGD@users.noreply.github.com> Date: Fri, 11 Jun 2021 19:35:20 +0200 Subject: [PATCH] Fix H0nde / H0nda detection H0nde / H0nda's spam wave does not come from Discord Bots but from normal user accounts. My change prevents your rules from falsely flagging Bots. However this filter is not really accurate and may ban users that are not affiliated with the H0nde Scam too! --- cogs/autoinspect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/autoinspect.py b/cogs/autoinspect.py index 9950671..5ac3421 100644 --- a/cogs/autoinspect.py +++ b/cogs/autoinspect.py @@ -70,8 +70,8 @@ async def bitcoin_bots_check(self, member: discord.Member) -> bool: csmoney = member.name == "CS.Money Giveaway" and "558848bb9da07cf3a5564ab357393f7d" in avatar_url and cond ajar = "d425a7de8709f9492baa12544f2fa44d" in avatar_url and cond fixed_name = ftfy.fix_text(member.name, normalization='NFKC').lower() - honde = "h0nde" in fixed_name - honde = honde or "h0nda" in fixed_name + honde = "h0nde" in fixed_name and not member.bot + honde = honde or "h0nda" in fixed_name and not member.bot return bitcoin or csmoney or ajar or honde