From 6c686b8b3cd9e5769156321a8d05f737196ee375 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Sat, 17 Aug 2024 03:02:31 -0400 Subject: fix stats and playback queue --- src/commands/today/mod.rs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/commands/today/mod.rs') 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) -> anyh data.get::().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()?; -- cgit v1.3.1