From 16d85e9c9ab291f4d914c932aa3acacf9014dbba Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Sat, 4 Nov 2023 20:38:25 -0700 Subject: [PATCH] convert: remove commented code --- cogs/convert.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/cogs/convert.py b/cogs/convert.py index ef8bf3c..7f397cc 100644 --- a/cogs/convert.py +++ b/cogs/convert.py @@ -101,8 +101,6 @@ async def download_media(self, ctx, filelink): return 4 file = await r.read() fileName = f"downloads/{ctx.message.id}_{yarl.URL(filelink).path.replace('/', '_')}" - #if filelink.find('/'): - # fileName = f"downloads/{filelink.rsplit('/', 1)[1]}" try: open(fileName, 'wb').write(file) except Exception: