ISSUE - commented out problem code?

This commit is contained in:
ModulatingForce 2024-03-28 17:52:43 -04:00
parent 26f67787d7
commit 5c35ad114a

View file

@ -184,12 +184,12 @@ async fn countdown_chnl_v1(params : ExecBodyParams) {
// let iterleft = arr.read().await.remaining_iterations.unwrap_or(0); // let iterleft = arr.read().await.remaining_iterations.unwrap_or(0);
// let iterleft = if arr.read().await.remaining_iterations.is_none() { 0i64 } // // let iterleft = if arr.read().await.remaining_iterations.is_none() { 0i64 }
// else { arr.read().await.remaining_iterations.unwrap() }; // // else { arr.read().await.remaining_iterations.unwrap() };
let iterleft = match arr.read().await.remaining_iterations { // let iterleft = match arr.read().await.remaining_iterations {
None => 0, // None => 0,
Some(a) => a, // Some(a) => a,
}; // };
botlog::trace( botlog::trace(
@ -231,17 +231,17 @@ async fn countdown_chnl_v1(params : ExecBodyParams) {
); );
Log::flush(); Log::flush();
let outmsg = if iterleft == 1 { // let outmsg = if iterleft == 1 {
format!("{} I love you uwu~",iterleft) // format!("{} I love you uwu~",iterleft)
} else { format!("{}",iterleft) }; // } else { format!("{}",iterleft) };
botlock.botmgrs.chat // botlock.botmgrs.chat
.say( // .say(
// joinedchannels.choose(&mut rng).unwrap().0.clone(), // // joinedchannels.choose(&mut rng).unwrap().0.clone(),
chosen_channel.0.clone(), // chosen_channel.0.clone(),
outmsg, // outmsg,
params.clone() // params.clone()
).await; // ).await;
} }