fix(youtubedownloader): fixed uploading files
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 52s

This commit is contained in:
Seaswimmer 2023-10-24 00:23:06 -04:00
parent c83e1bddb5
commit af27593fa9
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -117,7 +117,7 @@ class YouTubeDownloader(commands.Cog):
if os.path.isfile(output[0]): if os.path.isfile(output[0]):
with open(output[0], 'rb') as file: with open(output[0], 'rb') as file:
try: try:
complete_message = await ctx.send(content="YouTube Downloader completed!\nDownloaded file:", file=discord.File(file, output[3])) complete_message = await ctx.send(content="YouTube Downloader completed!\nDownloaded file:", file=discord.File(file, output[2]))
except ValueError: except ValueError:
complete_message = await ctx.send(content="YouTube Downloader completed, but the file was too large to upload.") complete_message = await ctx.send(content="YouTube Downloader completed, but the file was too large to upload.")
file.close() file.close()