From 0badf11468fb384a4d3138cb3d39748f8e77c7ce Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 9 Oct 2020 06:21:25 -0400 Subject: thursday --- src/commands/today/mod.rs | 2 ++ src/commands/today/thursday.rs | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/commands/today/thursday.rs diff --git a/src/commands/today/mod.rs b/src/commands/today/mod.rs index 21583dd..141f1af 100644 --- a/src/commands/today/mod.rs +++ b/src/commands/today/mod.rs @@ -38,6 +38,7 @@ mod shrek; mod putin; mod wednesday; +mod thursday; mod tomorrow; mod pianoman; @@ -77,6 +78,7 @@ lazy_static! { putin::putin, wednesday::wednesday, + thursday::thursday, tomorrow::tomorrow, pianoman::pianoman, diff --git a/src/commands/today/thursday.rs b/src/commands/today/thursday.rs new file mode 100644 index 0000000..0215293 --- /dev/null +++ b/src/commands/today/thursday.rs @@ -0,0 +1,13 @@ +use super::prelude::*; + +pub fn thursday(date: chrono::NaiveDateTime) -> TodayIter { + if date.weekday() != chrono::Weekday::Thu { + return Box::new(empty()); + } + + Box::new( + once( + by_url("https://www.youtube.com/watch?v=W6o44AfYWQE") + ) + ) +} -- cgit v1.3.1