From 6268fe925d1aedbe25404fb6f171bba0a499e511 Mon Sep 17 00:00:00 2001 From: Shiven Ajwaliya Date: Thu, 21 May 2026 10:34:37 +1000 Subject: [PATCH] 191-Enhancement-12hr update message delete to the last 12 hours --- features/security.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/security.py b/features/security.py index 5a21da5..f74c215 100644 --- a/features/security.py +++ b/features/security.py @@ -67,7 +67,7 @@ async def _execute_hacked_action(self, guild, target_user, moderator): print(f"Failed to DM hacked user {target_user.id}: {e}") # 5. Global Message Purge - cutoff_date = datetime.utcnow() - timedelta(hours=1) + cutoff_date = datetime.utcnow() - timedelta(hours=12) total_deleted = 0 channels_checked = 0 @@ -106,7 +106,7 @@ async def _execute_hacked_action(self, guild, target_user, moderator): embed.add_field(name="Status", value=timeout_status, inline=False) embed.add_field( name="Cleanup Stats", - value=f"🗑️ Deleted **{total_deleted} messages** across **{channels_checked} channels** (Past 1 hour).", + value=f"🗑️ Deleted **{total_deleted} messages** across **{channels_checked} channels** (Past 12 hours).", inline=False, ) embed.add_field(