diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/src/main.rs b/src/main.rs index be2fc90..93d4d2b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,36 +15,6 @@ use log::{ info, }; -pub use self::{ - config::*, - util::*, -}; - -#[cfg(feature = "db")] -mod db; - -#[cfg(feature = "games")] -mod game; - -#[cfg(not(feature = "games"))] -mod game { - use serenity::framework::StandardFramework; - - #[inline] - fn register(f: StandardFramework) -> StandardFramework { - return f; - } -} - -mod bot; -mod commands; -mod config; -mod log_setup; -mod util; - -pub type Error = anyhow::Error; -pub type Result<T> = anyhow::Result<T>; - const BACKOFF_FACTOR: f64 = 2.0; const MAX_BACKOFFS: usize = 3; const BACKOFF_INIT: f64 = 100.0; @@ -53,7 +23,7 @@ const MIN_RUN_DURATION: Duration = Duration::from_secs(120); #[tokio::main] async fn main() { - log_setup::init(false).expect("initializing logging"); + thulani::log_setup::init(false).expect("initializing logging"); let mut backoff_count: usize = 0; @@ -61,7 +31,7 @@ async fn main() { let start = Instant::now(); info!("starting bot"); - match bot::run().await { + match thulani::bot::run().await { Err(e) => { error!("error encountered running client: {:?}", e); }, |
