aboutsummaryrefslogtreecommitdiff
path: root/src/commands/today/ussr.rs
blob: cc3671ebbb78b5e47402d7e6053c16f1bf916139 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use super::prelude::*;

pub fn ussr(date: chrono::NaiveDateTime) -> 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")))
}