From 108471edfd911044449ef23db130b923c7c00d01 Mon Sep 17 00:00:00 2001 From: crate Date: Thu, 3 Oct 2024 01:10:10 +0000 Subject: [PATCH] delete image locally after send --- garfbot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/garfbot.py b/garfbot.py index 7dc4293..b59d40f 100644 --- a/garfbot.py +++ b/garfbot.py @@ -207,6 +207,7 @@ async def process_image_requests(): f.write(image_data) with open(save_filename, "rb") as f: await message.channel.send(file=discord.File(f, send_filename)) + os.remove(send_filename) else: await message.channel.send("`GarfBot Error: Odie`") else: