diff options
| -rw-r--r-- | src/commands/today/mod.rs | 2 | ||||
| -rw-r--r-- | src/commands/today/thursday.rs | 13 |
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") + ) + ) +} |
