aboutsummaryrefslogtreecommitdiff
path: root/src/commands/today/mod.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2024-08-17 03:02:31 -0400
committerNathan Perry <np@nathanperry.dev>2024-08-17 03:02:47 -0400
commit6c686b8b3cd9e5769156321a8d05f737196ee375 (patch)
tree76f940847bef8a85dfb2065914c93709fee0cd55 /src/commands/today/mod.rs
parent584f0ebc6e33ddc2905d82f44e7b42faea122668 (diff)
fix stats and playback queue
Diffstat (limited to 'src/commands/today/mod.rs')
-rw-r--r--src/commands/today/mod.rs15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/commands/today/mod.rs b/src/commands/today/mod.rs
index 2c47e83..6f4dcf6 100644
--- a/src/commands/today/mod.rs
+++ b/src/commands/today/mod.rs
@@ -16,7 +16,13 @@ use crate::{
HttpKey,
PlaybackKey,
},
- commands::playback::songbird,
+ commands::{
+ playback,
+ playback::{
+ songbird,
+ InvokeInfo,
+ },
+ },
util,
PoiseContext,
};
@@ -136,7 +142,12 @@ pub async fn today(ctx: PoiseContext<'_>, #[rest] _rest: Option<String>) -> anyh
data.get::<PlaybackKey>().unwrap().clone()
};
- playback.insert(handle.uuid(), meta);
+ playback.insert(handle.uuid(), playback::Metadata {
+ invoker: ctx.author().id,
+ invoke_info: InvokeInfo::Ytdl {
+ metadata: meta,
+ },
+ });
let q = call.queue();
q.pause()?;