From f95975a2dab7a52866eba51f78d7b705ec79bdc1 Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Mon, 11 Apr 2022 15:50:20 -0400 Subject: [PATCH] feat: allow more separators --- src/app/task/tokens.rs | 2 +- src/app/twitch.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/task/tokens.rs b/src/app/task/tokens.rs index 581486f..66a7583 100644 --- a/src/app/task/tokens.rs +++ b/src/app/task/tokens.rs @@ -13,7 +13,7 @@ pub async fn start_task(state: Arc) { eprintln!("could not get user token: {:?}", e); } - tokio::time::sleep(Duration::minutes(15).to_std().unwrap()).await; + tokio::time::sleep(Duration::minutes(5).to_std().unwrap()).await; } }); } diff --git a/src/app/twitch.rs b/src/app/twitch.rs index 7df0b49..4bda1ec 100644 --- a/src/app/twitch.rs +++ b/src/app/twitch.rs @@ -201,7 +201,11 @@ async fn rename_a_split(state: Arc, redemption: &Redemption) { } }; let (old, new) = match input.split_once("=>") + .or_else(|| input.split_once("==>")) .or_else(|| input.split_once("->")) + .or_else(|| input.split_once("-->")) + .or_else(|| input.split_once(">")) + .or_else(|| input.split_once(">>")) { Some(x) => x, None => {