Initial commit
This commit is contained in:
commit
8c6f7d4379
21 changed files with 4184 additions and 0 deletions
18
src/bot/config.rs
Normal file
18
src/bot/config.rs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
use secrecy::SecretString;
|
||||
use serde::Deserialize;
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct Config {
|
||||
pub bot: BotConfig,
|
||||
pub db: DatabaseConfig,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct DatabaseConfig {
|
||||
pub url: SecretString,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct BotConfig {
|
||||
pub token: SecretString,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue