aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorNathan Perry <avaglir@gmail.com>2019-01-24 21:48:39 -0500
committerNathan Perry <avaglir@gmail.com>2019-01-24 21:48:39 -0500
commit6ad374d089d917cba53a76a40f9fb9bc5793ceb2 (patch)
tree9f52f6c8aee66e8aae5d77e3af1757fdd0d8f4bd /src/commands
parent1a8a6eca29afe2178c6cf17abce9ab7e229ca26c (diff)
fix last of import inconsistencies
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/mod.rs13
-rw-r--r--src/commands/playback/mod.rs14
-rw-r--r--src/commands/playback/types.rs23
3 files changed, 31 insertions, 19 deletions
diff --git a/src/commands/mod.rs b/src/commands/mod.rs
index f2e577b..b73faef 100644
--- a/src/commands/mod.rs
+++ b/src/commands/mod.rs
@@ -1,18 +1,9 @@
-use std::{
- thread,
- time::Duration,
-};
-
use serenity::{
framework::StandardFramework,
- model::{
- channel::Message,
- id::ChannelId,
- },
- prelude::*,
+ model::id::ChannelId,
};
-use crate::{must_env_lookup, Result, TARGET_GUILD_ID};
+use crate::Result;
#[cfg(feature = "diesel")]
pub use self::meme::*;
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;