From b602673b94b7db41b46e309a93503052089510f1 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Sat, 26 Sep 2020 15:16:47 -0400 Subject: add france, shrek, better debug options --- src/commands/today/mod.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/commands/today/mod.rs') 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::().cloned().unwrap(); let mut play_queue = queue_lock.write().unwrap(); -- cgit v1.3.1