mirror of
https://github.com/alterware/aw-bot.git
synced 2025-10-26 06:05:54 +00:00
chore: handle this event
This commit is contained in:
12
bot/tasks.py
12
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:
|
||||
|
||||
Reference in New Issue
Block a user