RTRMLNTU262CQDXRF5YALSHUT2XXCOG6NPKFTF767PJ4Q2BYQ72QC
let Ok(token) = dotenvy::var("ACCESS_TOKEN") else {
// If ACCSESS_TOKEN is not set, generate one
eprintln!("* ACCESS_TOKEN is not set. Generating...");
streamer::oath(sns, url.as_str()).await;
return
let token = match dotenvy::var("ACCESS_TOKEN") {
Ok(token) => {
if token.is_empty() {
None
} else {
Some(token)
}
}
Err(_) => {
eprintln!("* ACCESS_TOKEN is not set. Generating...");
streamer::oath(sns, url.as_str()).await;
return;
}