diff options
Diffstat (limited to 'src/commands/meme/mod.rs')
| -rw-r--r-- | src/commands/meme/mod.rs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/commands/meme/mod.rs b/src/commands/meme/mod.rs index eb6aa1d..3883f3e 100644 --- a/src/commands/meme/mod.rs +++ b/src/commands/meme/mod.rs @@ -1,3 +1,8 @@ +use std::{ + borrow::ToOwned, + default::Default, +}; + use diesel_async::AsyncPgConnection; use grate::tracing; use rand::random; @@ -19,10 +24,6 @@ use songbird::input::{ Compose, Input, }; -use std::{ - borrow::ToOwned, - default::Default, -}; pub use self::{ create::*, @@ -38,7 +39,6 @@ use crate::{ }, util, PoiseContext, - CONFIG, }; mod create; @@ -113,6 +113,9 @@ async fn send_meme( return Ok(()); }; + let volume = util::volume(ctx).await; + tracing::debug!(volume); + { let (_sb, call) = songbird(ctx).await?; let mut call = call.lock().await; @@ -121,7 +124,8 @@ async fn send_meme( call.join(voice_channel).await?; } - call.enqueue_input(Input::Lazy(Box::new(audio))).await; + let handle = call.enqueue_input(Input::Lazy(Box::new(audio))).await; + handle.set_volume(volume as _)?; } util::react(ctx, ReactionType::Unicode("📣".to_owned())).await?; |
