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/playback.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/commands/playback.rs') diff --git a/src/commands/playback.rs b/src/commands/playback.rs index 70dd704..9b74c02 100644 --- a/src/commands/playback.rs +++ b/src/commands/playback.rs @@ -5,10 +5,7 @@ use log::{ info, warn, }; -use serenity::{ - all::ReactionType, - prelude::*, -}; +use serenity::prelude::*; use songbird::{ input::YoutubeDl, Call, @@ -66,6 +63,8 @@ pub async fn _play(ctx: PoiseContext<'_>, url: &url::Url) -> anyhow::Result<()> return Ok(()); } + util::react(ctx, '🔃').await?; + let (_sb, call) = songbird(ctx).await?; let mut call = call.lock().await; @@ -82,7 +81,8 @@ pub async fn _play(ctx: PoiseContext<'_>, url: &url::Url) -> anyhow::Result<()> 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?; + util::react(ctx, '📣').await?; + util::unreact(ctx, '🔃').await?; Ok(()) } -- cgit v1.3.1