From 5c35ad114a7df9628046775a4334ad930e19c83f Mon Sep 17 00:00:00 2001 From: ModulatingForce <116608425+modulatingforce@users.noreply.github.com> Date: Thu, 28 Mar 2024 17:52:43 -0400 Subject: [PATCH] ISSUE - commented out problem code? --- src/custom/experimental/experiment003.rs | 32 ++++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/custom/experimental/experiment003.rs b/src/custom/experimental/experiment003.rs index d40d7ab..c881d90 100644 --- a/src/custom/experimental/experiment003.rs +++ b/src/custom/experimental/experiment003.rs @@ -184,12 +184,12 @@ async fn countdown_chnl_v1(params : ExecBodyParams) { // let iterleft = arr.read().await.remaining_iterations.unwrap_or(0); - // let iterleft = if arr.read().await.remaining_iterations.is_none() { 0i64 } - // else { arr.read().await.remaining_iterations.unwrap() }; - let iterleft = match arr.read().await.remaining_iterations { - None => 0, - Some(a) => a, - }; + // // let iterleft = if arr.read().await.remaining_iterations.is_none() { 0i64 } + // // else { arr.read().await.remaining_iterations.unwrap() }; + // let iterleft = match arr.read().await.remaining_iterations { + // None => 0, + // Some(a) => a, + // }; botlog::trace( @@ -231,17 +231,17 @@ async fn countdown_chnl_v1(params : ExecBodyParams) { ); Log::flush(); - let outmsg = if iterleft == 1 { - format!("{} I love you uwu~",iterleft) - } else { format!("{}",iterleft) }; + // let outmsg = if iterleft == 1 { + // format!("{} I love you uwu~",iterleft) + // } else { format!("{}",iterleft) }; - botlock.botmgrs.chat - .say( - // joinedchannels.choose(&mut rng).unwrap().0.clone(), - chosen_channel.0.clone(), - outmsg, - params.clone() - ).await; + // botlock.botmgrs.chat + // .say( + // // joinedchannels.choose(&mut rng).unwrap().0.clone(), + // chosen_channel.0.clone(), + // outmsg, + // params.clone() + // ).await; }