From 4b326bda7e2ae0e3cf34a6e139029bc3da32a65b Mon Sep 17 00:00:00 2001 From: diamante0018 Date: Thu, 12 Jun 2025 21:09:59 +0200 Subject: [PATCH] chore: handle this event --- bot/tasks.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bot/tasks.py b/bot/tasks.py index 8abeeb0..aea58ac 100644 --- a/bot/tasks.py +++ b/bot/tasks.py @@ -166,16 +166,20 @@ async def setup(bot): async def heat_death(): try: now = aware_utcnow() - remaining_seconds = int((TARGET_DATE - now).total_seconds()) print(f"Seconds until August 12, 2036, UTC: {remaining_seconds}") channel = bot.get_channel(OFFTOPIC_CHANNEL) if channel: - await channel.send( - f"Can you believe it? Only {remaining_seconds} seconds until August 12th, 2036, the heat death of the universe." - ) + if remaining_seconds > 0: + await channel.send( + f"Can you believe it? Only {remaining_seconds} seconds until August 12th, 2036, the heat death of the universe." + ) + else: + await channel.send( + "The heat death of the universe has come and gone. We exist in a post-time void. Nothing remains but this message." + ) else: print("Debug: Channel not found. Check the OFFTOPIC_CHANNEL variable.") except Exception as e: