From 87d92a93d8493e0264c381aa005bf9feaef976ed Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 25 Sep 2020 21:37:16 -0400 Subject: reorganize 'today' --- src/commands/today/wednesday.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/commands/today/wednesday.rs (limited to 'src/commands/today/wednesday.rs') diff --git a/src/commands/today/wednesday.rs b/src/commands/today/wednesday.rs new file mode 100644 index 0000000..8fec707 --- /dev/null +++ b/src/commands/today/wednesday.rs @@ -0,0 +1,13 @@ +use super::prelude::*; + +pub fn wednesday(date: chrono::NaiveDate) -> TodayIter { + if date.weekday() != chrono::Weekday::Wed { + return Box::new(empty()); + } + + Box::new( + once( + by_url("https://www.youtube.com/watch?v=du-TY1GUFGk") + ) + ) +} -- cgit v1.3.1