aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs31
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>;