From c592146efbce27d213b516c38c5a252eb16e4f7a Mon Sep 17 00:00:00 2001 From: sclement Date: Mon, 30 Oct 2023 16:55:16 +0100 Subject: [PATCH] Sort file --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 8e7c103..73f1d18 100644 --- a/main.py +++ b/main.py @@ -45,10 +45,10 @@ async def on_message(message: discord.Message): int(match.group("id")), tmp_dir, REFRESH_TOKEN ) files = os.listdir(tmp_dir) - files.reverse() - await send_message.send_message_with_embed( - message, files, title, tmp_dir, match.group("url") - ) + files.sort() + # await send_message.send_message_with_embed( + # message, files, title, tmp_dir, match.group("url") + # ) await send_message.send_message(message, files, tmp_dir)