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/thursday.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/commands/today/thursday.rs (limited to 'src/commands/today/thursday.rs') 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