diff options
Diffstat (limited to 'src/commands/playback')
| -rw-r--r-- | src/commands/playback/mod.rs | 14 | ||||
| -rw-r--r-- | src/commands/playback/types.rs | 23 |
2 files changed, 29 insertions, 8 deletions
diff --git a/src/commands/playback/mod.rs b/src/commands/playback/mod.rs index 83732f2..051fabb 100644 --- a/src/commands/playback/mod.rs +++ b/src/commands/playback/mod.rs @@ -1,11 +1,19 @@ use either::{Left, Right}; use serenity::{ framework::standard::Args, - model::id::ChannelId, - voice::{LockedAudio, ytdl}, + model::{ + channel::Message, + id::ChannelId, + }, + prelude::*, }; -use super::*; +use crate::{ + commands::send, + must_env_lookup, + Result, + TARGET_GUILD_ID, +}; pub use self::types::*; diff --git a/src/commands/playback/types.rs b/src/commands/playback/types.rs index 9c1a878..63479fd 100644 --- a/src/commands/playback/types.rs +++ b/src/commands/playback/types.rs @@ -1,14 +1,27 @@ use std::{ - sync::{Arc, RwLock}, collections::VecDeque, + sync::{Arc, RwLock}, + thread, + time::Duration, }; -use serenity::client::bridge::voice::ClientVoiceManager; -use typemap::Key; - use either::{Either, Left, Right}; +use serenity::{ + client::bridge::voice::ClientVoiceManager, + model::id::ChannelId, + prelude::*, + voice::{LockedAudio, ytdl}, +}; +use typemap::Key; -use super::*; +use crate::{ + commands::{ + send, + sound::DEFAULT_VOLUME + }, + must_env_lookup, + TARGET_GUILD_ID, +}; pub struct VoiceManager; |
