aboutsummaryrefslogtreecommitdiff
path: root/src/commands/today/halloween.rs
blob: f09146bf8317b34cf0dc16a5b02d17845526f9e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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())
}