delete image locally after send
This commit is contained in:
parent
de27f5bb62
commit
108471edfd
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user