From ffba60b278162707bc4eb004c3bfb6b2e9595213 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Wed, 8 May 2024 12:55:35 -0400 Subject: rework to use songbird --- src/audio/mod.rs | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 src/audio/mod.rs (limited to 'src/audio/mod.rs') diff --git a/src/audio/mod.rs b/src/audio/mod.rs deleted file mode 100644 index 9affdb1..0000000 --- a/src/audio/mod.rs +++ /dev/null @@ -1,47 +0,0 @@ -use std::sync::Arc; - -use chrono::Duration; -use either::Either; -use serenity::{ - model::id::ChannelId, - prelude::*, -}; -use typemap::Key; - -pub use self::{ - play_queue::PlayQueue, - timeutil::parse_times, - ytdl::*, -}; - -mod play_queue; -mod timeutil; -mod ytdl; - -pub struct VoiceManager; - -impl Key for VoiceManager { - type Value = Arc>; -} - -impl VoiceManager { - pub fn register(c: &mut Client) { - let mut data = c.data.write(); - data.insert::(Arc::clone(&c.voice_manager)); - } -} - -#[derive(Clone, Debug)] -pub struct PlayArgs { - pub data: Either>, - pub initiator: String, - pub sender_channel: ChannelId, - pub start: Option, - pub end: Option, -} - -#[derive(Clone)] -pub struct CurrentItem { - pub init_args: PlayArgs, - pub audio: LockedAudio, -} -- cgit v1.3.1