From 966a4934552a43d2a1de0e314bacd7bada0a6845 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Sat, 16 Feb 2019 14:52:54 -0500 Subject: 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`. --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.rs') 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 = ::std::result::Result; @@ -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::("OWNER_ID"); let mut framework = StandardFramework::new() -- cgit v1.3.1