Skip to content

Commit

Permalink
Auto-ban mohamedhussienhassan accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
ZechCodes committed Mar 20, 2024
1 parent 5055f3d commit d9555d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extensions/new_members.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ async def check_for_highscore(self, guild: Guild):
)

async def onboard_member(self, member: Member):
if "mohamedhussienhassan" in member.display_name.casefold():
await member.ban(delete_message_seconds=60*60, reason="Bot accounts")
await member.guild.get_channel(719311864479219813).send(f"Auto banned {member.name} ({member.display_name})")
return

joined = datetime.now().astimezone(timezone.utc)
await member.set_label("joined", joined.isoformat())
await self.schedule_onboarding(member, joined)
Expand Down

0 comments on commit d9555d7

Please sign in to comment.