aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2022-11-29 10:59:06 -0500
committerNathan Perry <np@nathanperry.dev>2022-11-29 10:59:06 -0500
commitf7155b7372f9007a378cb07d5acdc1abcc8cc7f1 (patch)
tree6981ff28abe928cb3b2cef1f31ed5cadbc7c5c68 /src/config.rs
parentf15a23587dd474c539e4ec3bc3a10d0a22b2ae55 (diff)
fs: parameterize remote references
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs18
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
+}