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/lib.rs | |
| parent | 9319e0b9987114ffef2cc2be2d00f127925ba3a8 (diff) | |
first pass convert to poise
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..4ed3e44 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,31 @@ +#![feature(try_blocks)] + +#[cfg(feature = "db")] +pub mod db; + +#[cfg(not(feature = "games"))] +pub mod game { + use serenity::framework::StandardFramework; + + #[inline] + fn register(f: StandardFramework) -> StandardFramework { + return f; + } +} + +pub mod bot; +pub mod commands; +pub mod config; +pub mod log_setup; +pub mod util; + +pub use crate::{ + config::*, + util::*, +}; + +pub type Error = anyhow::Error; +pub type Result<T> = anyhow::Result<T>; + +pub type PoiseData = (); +pub type PoiseContext<'a> = poise::Context<'a, PoiseData, anyhow::Error>; |
