HSHQP542PXUJQVPUFX2YOSI6N4DYZ75VTBOIVJMYJXFSTKKIBDMAC
YREDNL3G26AXAUNMTGBRZUMJM3MBZ2TGGJJ5JLIRWBSOTPSEWFHQC
Z6JH7HGOELY6KHQX4DOHLU7Q7NAVO4YK7ZU3FRAABFMJEMESCKRQC
QQ7U6XFHZCKJ4TKVW62TCGWR7DNNJVCCWQH2CCTSTWJ36FPQIKBQC
6ZURHACLQ6F3QGSEGRENRUOZWBTRBOAXKHC372AGXXQ7FA7RX6QAC
JSUQLISL2P54R4AJLE4TDRZOXMSGK3SQJEQTOUD7BZZSC3JE35KQC
HR7EMS5WWDJASCN25DIFBKTRAESBEPGQDZIGP7DAO7EWXDW2HQSQC
Y5DIB6C3UMYHI7UVDP442GJCLRCIUHZRHJDQVP3IQSUNJFXG4ZOAC
WR2LC73HN6Z56NSL37UUGUGEUL5SF7MN344DHT4X5NPN4YZ4RQMQC
IOB5HQIPJV6UV7LWZPNTUXMXFQWOMJEDIZWJ27HOOYBUVNVUPAZAC
E3JNTFL4KR4647E2ONDQJ3SZJQG7ZXR2KZD634D5JYXRPT7IIKWAC
7X3AZRA7PHV3TYMSR6YSE3XZTZDYRF7UMH7UELYMTXRBYCVE6R4QC
BXX426GPHXW3DYKLDXL4GZ2C4VLCXTQQYERMF4IXQWNIUMG64DWAC
5YD5TE7BVUUMNIT2WQPFPLZ75Z4GK74B2NPCZO33U2JWCEOSN4HAC
WEIOXVYOMZTAICR67QS6DF3SPSORCI6A6NC6LZCKJYFNLQRMI3VQC
let page = fetch_cat_page(&mut *rng).await;
if let Err(e) = page {
let _ = msg
.reply(
&ctx,
format!(
"Catto express: was not able to deliver you cat: {}\n{}",
e,
"https://i.redd.it/4q32jedhkgi31.jpg" // crying catto
),
)
.await?;
return Ok(());
}
let page = fetch_cat_page(&mut *rng).await.map_err(|e| {
anyhow!(
"Catto express: was not able to deliver you cat: {}\n{}",
e,
"https://i.redd.it/4q32jedhkgi31.jpg" // crying catto
)
})?;
let url = fetch_url_in_cat_page(page?);
if url.is_none() {
let _ = msg
.reply(
&ctx,
format!("Catto express: your catto got lost in the page :pensive:"),
)
.await?;
return Ok(());
}
let url = url.unwrap();
let url = fetch_url_in_cat_page(page).ok_or(anyhow!(
"Catto express: your catto got lost in the page :pensive:"
))?;
};
let _ = match url {
Ok(url) => {
msg.channel_id
.send_files(&ctx, vec![url.as_str()], |m| m.content(&msg.author))
.await?
}
Err(annoncement) => {
msg.reply(&ctx, format!("Doggo express: {}", annoncement))
.await?
}
let page = fetch_spood_page(&mut *rng).await;
if let Err(e) = page {
let _ = msg
.reply(
&ctx,
format!(
"Spoddo express: was not able to deliver you spood: {}\n{}",
e,
"https://cdn.drawception.com/drawings/gB8gGBpkSW.png" // crying spoddo
),
)
.await?;
return Ok(());
}
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
)
})?;
let url = fetch_url_in_spood_page(page?, &mut *rng);
if url.is_none() {
let _ = msg
.reply(
&ctx,
format!("Spoddo express: your spood got lost in the page :pensive:"),
)
.await?;
return Ok(());
}
let url = url.unwrap();
let url = fetch_url_in_spood_page(page, &mut *rng).ok_or(anyhow!(
"Spoddo express: your spood got lost in the page :pensive:"
))?;
let step = match parser.and(&term, &mut *rng) {
Ok(step) => step,
Err(e) => {
let _ = msg.reply(&ctx, format!("{}", e)).await?;
return Ok(());
}
};
let step = parser.and(&term, &mut *rng)?;
let s = match self {
Roll::Dice(rolls, faces) => format!("{}d{}", rolls, faces),
Roll::Const(c) => format!("{}", c),
};
write!(f, "{}", s)
match self {
Roll::Dice(rolls, faces) => write!(f, "{}d{}", rolls, faces),
Roll::Const(c) => write!(f, "{}", c),
}