ferris_bot/lib.rs
1//! ferris bot is a discord bot written in rust.
2//! this library contains some basic things for the bot like commands.
3//! you should refer to this documentation if you want to extend the bot.
4//! since the bot uses [serenity](https://crates.io/crates/serenity) you should also refer to
5//! [its documentation](https://docs.rs/serenity).
6//!
7//! # Examples
8//!
9//! loading a config file
10//! ```rust
11//! use ferris_bot::config::conf::load_config;
12//!
13//! fn main() {
14//! let config = load_config("example_config.toml").unwrap();
15//! }
16//! ```
17
18pub mod cmd;
19pub mod config;
20
21#[cfg(test)]
22mod tests {
23 use crate::config::conf::load_config;
24 #[test]
25 fn read_conf() {
26 assert!(load_config("example_config.toml").is_ok());
27 }
28}