diff options
| author | Nathan Perry <np@nathanperry.dev> | 2020-09-25 21:37:16 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2020-09-25 21:37:16 -0400 |
| commit | 87d92a93d8493e0264c381aa005bf9feaef976ed (patch) | |
| tree | e719b45bbf1ca800bf05c2aa43dbfe7d8317b0dd /src/commands/today/halloween.rs | |
| parent | 0e3ea2f3f4cef9398141e894df6838ac5c07eb42 (diff) | |
reorganize 'today'
Diffstat (limited to 'src/commands/today/halloween.rs')
| -rw-r--r-- | src/commands/today/halloween.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/commands/today/halloween.rs b/src/commands/today/halloween.rs new file mode 100644 index 0000000..847da8e --- /dev/null +++ b/src/commands/today/halloween.rs @@ -0,0 +1,20 @@ +use super::prelude::*; + +lazy_static! { + static ref HALLOWEEN: Vec<TodayArgs> = vec![ + TodayArgs { + url: "https://www.youtube.com/watch?v=-1dSY6ZuXEY", + ..Default::default() + }, + ]; +} + +pub fn halloween(date: chrono::NaiveDate) -> TodayIter { + if (10, 31) != month_day(date) { + return Box::new(empty()); + } + + Box::new( + HALLOWEEN.iter().cloned() + ) +} |
