style: Update date format in archive and add context menu note

Changed date formatting in archive.py from DD.MM.YYYY to MM/DD/YYYY for consistency. Added a note in context_menus.py indicating the file is unused and may be removed in the future.
This commit is contained in:
neoarz
2025-09-15 14:50:53 -04:00
parent 2e0c8dafd0
commit 2ca95b01b0
2 changed files with 5 additions and 2 deletions

View File

@@ -40,12 +40,12 @@ class Archive(commands.Cog, name="archive"):
else ""
)
message_line = f"{message.created_at.strftime('%d.%m.%Y %H:%M:%S')} {message.author} {message.id}: {message.clean_content} {attachments_text}\n"
message_line = f"{message.created_at.strftime('%m/%d/%Y %H:%M:%S')} {message.author} {message.id}: {message.clean_content} {attachments_text}\n"
messages.append(message_line)
with open(log_file, "w", encoding="UTF-8") as f:
f.write(
f'Archived messages from: #{context.channel} ({context.channel.id}) in the guild "{context.guild}" ({context.guild.id}) at {datetime.now().strftime("%d.%m.%Y %H:%M:%S")}\n'
f'Archived messages from: #{context.channel} ({context.channel.id}) in the guild "{context.guild}" ({context.guild.id}) at {datetime.now().strftime("%m/%d/%Y %H:%M:%S")}\n'
)
for message_line in reversed(messages):