diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 01:30:08 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 01:30:08 +0100 |
| commit | 2a77065cb7b8e44bc16337a5f6c5d20566005e60 (patch) | |
| tree | 48343bb957b8f2270c3144da8d8fc65d9d8f1aec | |
| parent | net: block private and link-local URLs (diff) | |
| download | senator-sperma-2a77065cb7b8e44bc16337a5f6c5d20566005e60.tar.gz senator-sperma-2a77065cb7b8e44bc16337a5f6c5d20566005e60.zip | |
config: make voice recording opt-in
| -rw-r--r-- | src/config.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.rs b/src/config.rs index e55226c..720c215 100644 --- a/src/config.rs +++ b/src/config.rs | |||
| @@ -129,8 +129,8 @@ const ENV_VARS: &[EnvVar] = &[ | |||
| 129 | EnvVar { | 129 | EnvVar { |
| 130 | name: "RECORDING_ENABLED", | 130 | name: "RECORDING_ENABLED", |
| 131 | required: false, | 131 | required: false, |
| 132 | default: Some("true"), | 132 | default: Some("false"), |
| 133 | description: "enable continuous voice recording while in a VC (set false to opt out)", | 133 | description: "enable continuous voice recording while in a VC (opt in)", |
| 134 | }, | 134 | }, |
| 135 | EnvVar { | 135 | EnvVar { |
| 136 | name: "RECORDING_WINDOW_SECONDS", | 136 | name: "RECORDING_WINDOW_SECONDS", |
| @@ -201,9 +201,9 @@ impl Config { | |||
| 201 | .and_then(|v| v.parse().ok()), | 201 | .and_then(|v| v.parse().ok()), |
| 202 | assistant_keyword: env::var("ASSISTANT_KEYWORD").unwrap_or_else(|_| "jarvis".into()), | 202 | assistant_keyword: env::var("ASSISTANT_KEYWORD").unwrap_or_else(|_| "jarvis".into()), |
| 203 | recording_enabled: env::var("RECORDING_ENABLED") | 203 | recording_enabled: env::var("RECORDING_ENABLED") |
| 204 | .unwrap_or_else(|_| "true".into()) | 204 | .unwrap_or_else(|_| "false".into()) |
| 205 | .parse() | 205 | .parse() |
| 206 | .unwrap_or(true), | 206 | .unwrap_or(false), |
| 207 | recording_window_seconds: env::var("RECORDING_WINDOW_SECONDS") | 207 | recording_window_seconds: env::var("RECORDING_WINDOW_SECONDS") |
| 208 | .ok() | 208 | .ok() |
| 209 | .and_then(|value| value.parse::<u64>().ok()) | 209 | .and_then(|value| value.parse::<u64>().ok()) |
