diff options
| author | Nathan Perry <np@nathanperry.dev> | 2020-10-09 06:21:25 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2020-10-09 06:21:25 -0400 |
| commit | 0badf11468fb384a4d3138cb3d39748f8e77c7ce (patch) | |
| tree | adc2fef52d5bcfedaa876774afc9f1aec99eb810 /src/commands/today/thursday.rs | |
| parent | 5270c05bd68fa8a2ae6600811d993ffcaaeeab08 (diff) | |
thursday
Diffstat (limited to 'src/commands/today/thursday.rs')
| -rw-r--r-- | src/commands/today/thursday.rs | 13 |
1 files changed, 13 insertions, 0 deletions
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") + ) + ) +} |
