aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorNathan Perry <avaglir@gmail.com>2019-02-16 14:52:54 -0500
committerNathan Perry <avaglir@gmail.com>2019-02-16 14:52:54 -0500
commit966a4934552a43d2a1de0e314bacd7bada0a6845 (patch)
tree44a895eb5859ff0390f1008f2beed2de4b18e548 /src/main.rs
parent978945e16046fb28b2351ee637fd267c38df93ac (diff)
clean up project structure
- Move audio-related code into its own top-level module, separating out playback commands into their own file in `commands`. - Rename `sound` commands module to `sound_levels`.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index feca86f..7202556 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -50,6 +50,7 @@ mod db;
mod commands;
mod util;
+mod audio;
pub type Result<T> = ::std::result::Result<T, Error>;
@@ -82,8 +83,8 @@ fn run() -> Result<()> {
let token = &dotenv::var("THULANI_TOKEN").map_err(|_| format_err!("missing token"))?;
let mut client = Client::new(token, Handler)?;
- commands::VoiceManager::register(&mut client);
- commands::PlayQueue::register(&mut client);
+ audio::VoiceManager::register(&mut client);
+ audio::PlayQueue::register(&mut client);
let owner_id = must_env_lookup::<u64>("OWNER_ID");
let mut framework = StandardFramework::new()