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/mod.rs | |
| parent | 0dc547e5ac5736174bb9727e1e93da987ed781fd (diff) | |
add france, shrek, better debug options
Diffstat (limited to 'src/commands/today/mod.rs')
| -rw-r--r-- | src/commands/today/mod.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/commands/today/mod.rs b/src/commands/today/mod.rs index 84f3f1b..ff06cc8 100644 --- a/src/commands/today/mod.rs +++ b/src/commands/today/mod.rs @@ -33,6 +33,8 @@ mod nov_5; mod halloween; mod ussr; +mod france; +mod shrek; mod wednesday; @@ -68,6 +70,8 @@ lazy_static! { halloween::halloween, ussr::ussr, + france::france, + shrek::shrek, wednesday::wednesday, @@ -100,12 +104,16 @@ pub fn today(ctx: &mut Context, msg: &Message, args: Args) -> Result<()> { .flat_map(|f| f(today)) .collect(); - debug!("selected {} options for {}", options.len(), today); + debug!("{} options for {}", options.len(), today); let play_args = options.choose(&mut thread_rng()) .map(|x| x.as_play_args(msg)); if let Some(play_args) = play_args { + play_args.data.as_ref().left().iter().for_each(|url| { + debug!("today selected: {}", url); + }); + let queue_lock = ctx.data.write().get::<PlayQueue>().cloned().unwrap(); let mut play_queue = queue_lock.write().unwrap(); |
