aboutsummaryrefslogtreecommitdiff
path: root/src/commands/playback.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2024-08-16 02:53:45 -0400
committerNathan Perry <np@nathanperry.dev>2024-08-16 02:53:45 -0400
commitc9e6b2e681088687f5a714c3324d4d0731b8393e (patch)
treeaaded1a3182b2d2ad1268043ad20067b26cb4531 /src/commands/playback.rs
parentf39b1607b54073646b8ebae8852000706db885ad (diff)
better unrecognized handling, more expressive react/unreact indicators
Diffstat (limited to 'src/commands/playback.rs')
-rw-r--r--src/commands/playback.rs10
1 files changed, 5 insertions, 5 deletions
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(())
}