From 114a24c1cb6ba9e0781de2e0d710b8fdd28008f2 Mon Sep 17 00:00:00 2001 From: phixxy Date: Wed, 4 Sep 2024 19:51:57 -0700 Subject: [PATCH] debug messages added --- cogs/ytdl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/ytdl.py b/cogs/ytdl.py index 555a47d..a86eafd 100644 --- a/cogs/ytdl.py +++ b/cogs/ytdl.py @@ -18,8 +18,8 @@ class YoutubeDL(BotBaseCog): video_or_audio = ctx.message.content.split(" ", 2)[2] process = subprocess.Popen(["python3", "data/ytdl/youtubedl.py", url, video_or_audio]) process.wait() - output = process.returncode - await ctx.send(f"Downloading {video_or_audio} from {url}...", embed=None) + await ctx.send(process.stdout) + await ctx.send(f"Downloading {video_or_audio} from {url}...", embeds=None) except: await ctx.send("Usage: !youtubedl ")