misc: reduced sleep time on ytdlp loop

This commit is contained in:
Seaswimmer 2023-08-01 12:40:08 -04:00
parent 653d6fc007
commit ef29d2c68e
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -90,7 +90,7 @@ class MusicDownloader(commands.Cog):
filename = youtube_download(self, url, data_path, message)
full_filename = os.path.join(data_path, filename)
while not os.path.isfile(full_filename):
await asyncio.sleep(1)
await asyncio.sleep(0.5)
if os.path.isfile(full_filename):
with open(full_filename, 'rb') as file:
await ctx.send(content="YouTube Downloader completed!\nDownloaded file:", file=discord.File(file, {filename}))