diff --git a/src/main.rs b/src/main.rs index 20bb041..b78d8ba 100644 --- a/src/main.rs +++ b/src/main.rs @@ -150,7 +150,13 @@ async fn main() -> Result { let reply_channels = std::env::var("REPLY_CHANNELS") .context("Missing REPLY_CHANNELS env var")? .split(",") - .map(|s| s.trim().parse::().map(|c| Id::new(c))) + .filter_map(|s| { + if s.trim().is_empty() { + None + } else { + Some(s.trim().parse::().map(|c| Id::new(c))) + } + }) .collect::>() .context("Invalid channel IDs for REPLY_CHANNELS")?; let brain_file_path =