aboutsummaryrefslogtreecommitdiff
path: root/src/commands/playback.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2024-08-16 01:46:17 -0400
committerNathan Perry <np@nathanperry.dev>2024-08-16 01:46:17 -0400
commitf39b1607b54073646b8ebae8852000706db885ad (patch)
tree8033b4460593fb729f6aecc1c7deba84d952f3f0 /src/commands/playback.rs
parenta435a926689b0b597caa1c724a91694f74dec778 (diff)
fix required command options
Diffstat (limited to 'src/commands/playback.rs')
-rw-r--r--src/commands/playback.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/playback.rs b/src/commands/playback.rs
index 48f3286..70dd704 100644
--- a/src/commands/playback.rs
+++ b/src/commands/playback.rs
@@ -78,7 +78,8 @@ pub async fn _play(ctx: PoiseContext<'_>, url: &url::Url) -> anyhow::Result<()>
data.get::<HttpKey>().unwrap().clone()
};
- let input = YoutubeDl::new_ytdl_like("yt-dlp", client.clone(), url.to_string());
+ let input =
+ YoutubeDl::new_ytdl_like(&crate::config::YTDL_COMMAND, client.clone(), url.to_string());
call.enqueue_input(input.into()).await;
util::react(ctx, ReactionType::Unicode("📣".to_owned())).await?;