WIP: Basic Routine Functionality #40

Draft
modulatingforce wants to merge 23 commits from routines-functionality into master
Showing only changes of commit 5c35ad114a - Show all commits

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 = 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;
}