2WCFXK4HZUF7JB5E44WAIZCZSTGQNW5O6R32DKDDKCLX2N5JZUUQC
scheduler.every(8.hours()).run(move || {
println!("sending a new pun");
let mut pun = reqwest::get("http:/pun.irevoire.ovh").unwrap();
if !pun.status().is_success() {
println!("server error when getting a new pun");
return;
}
let pun = pun.text().unwrap();
scheduler
.every(1.day())
.at("08:15")
.and_every(1.day())
.at("11:50")
.and_every(1.day())
.at("17:45")
.run(move || {
println!("sending a new pun");
let mut pun = reqwest::get("http:/pun.irevoire.ovh").unwrap();
if !pun.status().is_success() {
println!("server error when getting a new pun");
return;
}
let pun = pun.text().unwrap();