aboutsummaryrefslogtreecommitdiff
path: root/src/commands/today/ussr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/today/ussr.rs')
-rw-r--r--src/commands/today/ussr.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/commands/today/ussr.rs b/src/commands/today/ussr.rs
new file mode 100644
index 0000000..7085d82
--- /dev/null
+++ b/src/commands/today/ussr.rs
@@ -0,0 +1,25 @@
+use super::prelude::*;
+
+pub fn ussr(date: chrono::NaiveDate) -> TodayIter {
+ let ok = match month_day(date) {
+ // red army day
+ (2, 23) => true,
+
+ // cosmonautics day
+ (4, 12) => true,
+
+ // constitution day
+ (10, 7) => true,
+
+ // november revolution day
+ (11, 7) => true,
+
+ _ => false,
+ };
+
+ if !ok {
+ return Box::new(empty());
+ }
+
+ Box::new(once(by_url("https://www.youtube.com/watch?v=U06jlgpMtQs")))
+}