Skip to content

Commit

Permalink
Update acount age restriction validation to include 15 days old accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
PenguinBoi12 authored Mar 12, 2024
1 parent 5374f0a commit a74551d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/extensions/moderation_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def on_member_join(self, member) -> None:
minimum_account_age = app.config.get("moderation", "minimum_account_age")
account_age_in_days = (datetime.now().replace(tzinfo=None) - member.created_at.replace(tzinfo=None)).days

if account_age_in_days <= minimum_account_age:
if account_age_in_days < minimum_account_age:
info(f"{member} kicked due to account age restriction!")

log = danger("KICK", f"{member} has been kicked.")
Expand Down

0 comments on commit a74551d

Please # to comment.