diff options
| author | Nathan Perry <np@nathanperry.dev> | 2024-08-06 10:45:06 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2024-08-06 10:45:06 -0400 |
| commit | 72d9bbe15220c21909dec8e30fb80729a24cec72 (patch) | |
| tree | 5025c799e3065553c1e6a91b82cb2eae8e00c43e /src/main.rs | |
| parent | 9319e0b9987114ffef2cc2be2d00f127925ba3a8 (diff) | |
first pass convert to poise
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); }, |
