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/lib.rs | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/lib.rs (limited to 'src/lib.rs') 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 = anyhow::Result; + +pub type PoiseData = (); +pub type PoiseContext<'a> = poise::Context<'a, PoiseData, anyhow::Error>; -- cgit v1.3.1