diff options
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index 53801b6..56e9190 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,3 +1,5 @@ +use std::path::PathBuf; + use serenity::{ model::id::{ GuildId, @@ -16,6 +18,8 @@ lazy_static! { Config::init().unwrap() }; + + pub static ref FFMPEG_COMMAND: String = CONFIG.ffmpeg.clone().unwrap_or("youtube-dl".to_owned()); } #[derive(Envconfig)] @@ -32,6 +36,18 @@ pub struct Config { #[envconfig(from = "STEAM_API_KEY")] pub steam_api_key: String, + #[envconfig(from = "FFMPEG")] + pub ffmpeg: Option<String>, + + #[envconfig(from = "YTDL")] + pub ytdl: Option<String>, + + #[envconfig(from = "USER_ID_MAPPING")] + pub user_id_mapping: Option<PathBuf>, + + #[envconfig(from = "RESTRICT")] + pub restrict: Option<PathBuf>, + pub discord: DiscordConfig, pub sheets: SheetsConfig, @@ -87,4 +103,4 @@ pub struct SheetsConfig { #[envconfig(from = "MAX_SHEET_COLUMN")] pub max_column: String, -}
\ No newline at end of file +} |
