aboutsummaryrefslogtreecommitdiff
path: root/src/commands/today/halloween.rs
blob: 3fb1c180761ee552ce3d317a2ea870f8eadd2aa9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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::NaiveDateTime) -> TodayIter {
    if (10, 31) != month_day(date) {
        return Box::new(empty());
    }

    Box::new(
        HALLOWEEN.iter().cloned()
    )
}