aboutsummaryrefslogtreecommitdiff
path: root/src/commands/today/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/today/mod.rs')
-rw-r--r--src/commands/today/mod.rs10
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();