From 72d9bbe15220c21909dec8e30fb80729a24cec72 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Tue, 6 Aug 2024 10:45:06 -0400 Subject: first pass convert to poise --- src/main.rs | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) (limited to 'src/main.rs') 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 = anyhow::Result; - 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); }, -- cgit v1.3.1