From 28659db76d906ea1132eb96433cf0d574a6090c8 Mon Sep 17 00:00:00 2001 From: Alex Winkler Date: Thu, 20 Oct 2022 16:31:57 +0200 Subject: [PATCH] check if member.name and member.nick are None before using them --- ftsbot/cogs/antispam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftsbot/cogs/antispam.py b/ftsbot/cogs/antispam.py index 79953cd..45aaa8e 100644 --- a/ftsbot/cogs/antispam.py +++ b/ftsbot/cogs/antispam.py @@ -98,7 +98,7 @@ async def on_member_join( ( member.name is not None and 'twitter.com/h0nde' in member.name.lower() - ) + ) or ( member.nick is not None and 'twitter.com/h0nde' in member.nick.lower()