aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: 4ed3e443459eb5d4e786155a1701e37c4a344e8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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>;