From c9e6b2e681088687f5a714c3324d4d0731b8393e Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 16 Aug 2024 02:53:45 -0400 Subject: better unrecognized handling, more expressive react/unreact indicators --- src/commands/mod.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/commands/mod.rs') 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) -> 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(()) -- cgit v1.3.1