aboutsummaryrefslogtreecommitdiff
path: root/src/commands/today/wednesday.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2020-09-25 21:37:16 -0400
committerNathan Perry <np@nathanperry.dev>2020-09-25 21:37:16 -0400
commit87d92a93d8493e0264c381aa005bf9feaef976ed (patch)
treee719b45bbf1ca800bf05c2aa43dbfe7d8317b0dd /src/commands/today/wednesday.rs
parent0e3ea2f3f4cef9398141e894df6838ac5c07eb42 (diff)
reorganize 'today'
Diffstat (limited to 'src/commands/today/wednesday.rs')
-rw-r--r--src/commands/today/wednesday.rs13
1 files changed, 13 insertions, 0 deletions
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")
+ )
+ )
+}