diff options
| author | Nathan Perry <np@nathanperry.dev> | 2020-09-26 15:16:47 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2020-09-26 15:16:54 -0400 |
| commit | b602673b94b7db41b46e309a93503052089510f1 (patch) | |
| tree | cdc02f70169630669146c02ea79cdecb18d5f32e /src/commands/today/france.rs | |
| parent | 0dc547e5ac5736174bb9727e1e93da987ed781fd (diff) | |
add france, shrek, better debug options
Diffstat (limited to 'src/commands/today/france.rs')
| -rw-r--r-- | src/commands/today/france.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/commands/today/france.rs b/src/commands/today/france.rs new file mode 100644 index 0000000..28c7b96 --- /dev/null +++ b/src/commands/today/france.rs @@ -0,0 +1,16 @@ +use super::prelude::*; + +pub fn france(date: chrono::NaiveDate) -> TodayIter { + let ok = match month_day(date) { + // bastille day + (7, 14) => true, + + _ => false, + }; + + if !ok { + return Box::new(empty()); + } + + Box::new(once(by_url("https://www.youtube.com/watch?v=VFevH5vP32s"))) +} |
