diff options
| author | Nathan Perry <avaglir@gmail.com> | 2019-02-16 14:52:54 -0500 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2019-02-16 14:52:54 -0500 |
| commit | 966a4934552a43d2a1de0e314bacd7bada0a6845 (patch) | |
| tree | 44a895eb5859ff0390f1008f2beed2de4b18e548 /src/main.rs | |
| parent | 978945e16046fb28b2351ee637fd267c38df93ac (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.rs | 5 |
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() |
