clean up
This commit is contained in:
parent
9dfc3b21ff
commit
0b0779f8b7
32 changed files with 137 additions and 181 deletions
|
@ -3,8 +3,8 @@ mod discord;
|
|||
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct Config {
|
||||
bot: bot::Config,
|
||||
discord: discord::Config,
|
||||
pub bot: bot::Config,
|
||||
pub discord: discord::Config,
|
||||
}
|
||||
|
||||
impl Config {
|
||||
|
@ -21,12 +21,4 @@ impl Config {
|
|||
|
||||
Self::new(bot, discord)
|
||||
}
|
||||
|
||||
pub fn bot_config(&self) -> &bot::Config {
|
||||
&self.bot
|
||||
}
|
||||
|
||||
pub fn discord_config(&self) -> &discord::Config {
|
||||
&self.discord
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue