diff options
| author | Nathan Perry <np@nathanperry.dev> | 2024-08-16 02:53:45 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2024-08-16 02:53:45 -0400 |
| commit | c9e6b2e681088687f5a714c3324d4d0731b8393e (patch) | |
| tree | aaded1a3182b2d2ad1268043ad20067b26cb4531 /src/commands/mod.rs | |
| parent | f39b1607b54073646b8ebae8852000706db885ad (diff) | |
better unrecognized handling, more expressive react/unreact indicators
Diffstat (limited to 'src/commands/mod.rs')
| -rw-r--r-- | src/commands/mod.rs | 8 |
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(()) |
