7Y2T6EWAIVJ3ZGGCQU5NEND6RINSYHR3QEFEFOYSJROXBSOT4AMQC
KSLI6S43M2RU7MMFOSNUIISHJECRZIP3YVMUXHJBAKYXXDMDE5KAC
33MF5FHZWX24UYNO67X2A7ODY5QHM7U6UGKKSP3ZCTSBX66H3AQQC
U2D5BY4KBQLM5NZLWGOTNVYDECYSBHYVGHTWSXSOWYW2NTIMEMTQC
6ZURHACLQ6F3QGSEGRENRUOZWBTRBOAXKHC372AGXXQ7FA7RX6QAC
SHN4Y2EFD44NK3RJRY57VEHZFUQBREDQE2M4J5PZW2UVGMYP5YUAC
YREDNL3G26AXAUNMTGBRZUMJM3MBZ2TGGJJ5JLIRWBSOTPSEWFHQC
JSUQLISL2P54R4AJLE4TDRZOXMSGK3SQJEQTOUD7BZZSC3JE35KQC
F7EHBV5ZMTWLG625Z3NEVDONESXOUZSBZFTDN2GADKLSQJZP72DAC
Z6JH7HGOELY6KHQX4DOHLU7Q7NAVO4YK7ZU3FRAABFMJEMESCKRQC
3PIOBGINNZSES3CV4FPGKCPQOSO2DYFKRUIVRLE62L2RGM3D3T2QC
crate::repeat_message!(ctx, {
let url = fetch_random_fox_url().await?;
msg.channel_id
.send_files(&ctx, vec![url.as_str()], |m| m.content(&msg.author))
.await?
});
crate::repeat_message!(ctx, msg, { fetch_random_fox_url().await? });
let page = fetch_spood_page(&mut *rng).await.map_err(|e| {
anyhow!(
"Spoddo express: was not able to deliver you spood: {}\n{}",
e,
"https://cdn.drawception.com/drawings/gB8gGBpkSW.png" // crying spoddo
)
})?;
crate::repeat_message!(ctx, msg, {
// we want to free the lock as soon as possible
let mut rng = data.get::<crate::Random>().unwrap().lock().await;
fetch_url_in_spood_page(page, &mut *rng).ok_or(anyhow!(
"Spoddo express: your spood got lost in the page :pensive:"
))?
};
let page = fetch_spood_page(&mut *rng).await.map_err(|e| {
anyhow!(
"Spoddo express: was not able to deliver you spood: {}\n{}",
e,
"https://cdn.drawception.com/drawings/gB8gGBpkSW.png" // crying spoddo
)
})?;
msg.channel_id
.send_files(&ctx, vec![url.as_str()], |m| m.content(&msg.author))
.await?
fetch_url_in_spood_page(page, &mut *rng).ok_or(anyhow!(
"Spoddo express: your spood got lost in the page :pensive:"
))?