aboutsummaryrefslogtreecommitdiff
path: root/src/commands/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/mod.rs')
-rw-r--r--src/commands/mod.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/commands/mod.rs b/src/commands/mod.rs
index b7a8378..2729580 100644
--- a/src/commands/mod.rs
+++ b/src/commands/mod.rs
@@ -2,7 +2,6 @@ use poise::builtins::PrettyHelpConfiguration;
use crate::{
commands::playback::_play,
- util,
PoiseContext,
};
@@ -49,12 +48,7 @@ pub async fn help(ctx: PoiseContext<'_>, command: Option<String>) -> anyhow::Res
Ok(())
}
-pub async fn unrecognized(ctx: PoiseContext<'_>, u: url::Url) -> anyhow::Result<()> {
- if !u.scheme().starts_with("http") {
- util::reply(ctx, "format your commands right. fuck you.").await?;
- return Ok(());
- }
-
+pub async fn link_unrecognized(ctx: PoiseContext<'_>, u: url::Url) -> anyhow::Result<()> {
let _ = _play(ctx, &u).await?;
Ok(())