ISSUE - commented out problem code?
This commit is contained in:
parent
26f67787d7
commit
5c35ad114a
1 changed files with 16 additions and 16 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue