From 595d2f9a1976539a8a9f81da2e72c49caa144430 Mon Sep 17 00:00:00 2001 From: BFlow Date: Wed, 29 Apr 2020 17:54:24 +0200 Subject: [PATCH] correction command play --- kabot/kabot/kabot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 8eeb6d2..bf2f357 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -270,10 +270,10 @@ class Mybot(commands.Cog): }], } with youtube_dl.YoutubeDL(ydl_opts) as ydl: - ydl.download([url]) + await ydl.download([url]) info_dict = ydl.extract_info(url, download=False) out_file = ydl.prepare_filename(info_dict) - self.sounds.append(out_file) + self.sounds.append((out_file, ctx)) @commands.command() async def repeat(self, ctx):