aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: a45f9fb19d5273711a7796417875681c89b81c46 (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
#![feature(try_blocks)]
#![feature(maybe_uninit_slice)]

#[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 PoiseData = ();
pub type PoiseContext<'a> = poise::Context<'a, PoiseData, anyhow::Error>;