From e9e05fdad8cb650a08f300674d735248c6df09ae Mon Sep 17 00:00:00 2001 From: cheybah Date: Wed, 31 Jan 2024 15:16:15 +0100 Subject: [PATCH] test branch --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index 12d8f12..5380ea8 100644 --- a/main.py +++ b/main.py @@ -9,12 +9,17 @@ intents.message_content = True # Allow tracking of message content bot = commands.Bot(command_prefix='!', intents=intents) + + @bot.command() async def post_image(ctx): download_dir = 'downloaded_images' # List all files in the download directory files = os.listdir(download_dir) + x= 12 + y=52 + z= x+y # Filter for image files (you can add more supported extensions) image_files = [f for f in files if f.endswith(('.jpg', '.png', '.jpeg', '.gif'))]