aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2020-10-09 06:21:25 -0400
committerNathan Perry <np@nathanperry.dev>2020-10-09 06:21:25 -0400
commit0badf11468fb384a4d3138cb3d39748f8e77c7ce (patch)
treeadc2fef52d5bcfedaa876774afc9f1aec99eb810
parent5270c05bd68fa8a2ae6600811d993ffcaaeeab08 (diff)
thursday
-rw-r--r--src/commands/today/mod.rs2
-rw-r--r--src/commands/today/thursday.rs13
2 files changed, 15 insertions, 0 deletions
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")
+ )
+ )
+}