From fe77b6662d9ce074a552730e26d5cab2c6c08c5b Mon Sep 17 00:00:00 2001 From: "DavidCrompton1192@gmail.com" Date: Sat, 11 Mar 2023 20:09:53 -0500 Subject: [PATCH] Some debugs, remove bad break --- src/utils/guild_popin.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/utils/guild_popin.rs b/src/utils/guild_popin.rs index 355b55a..cde67f4 100644 --- a/src/utils/guild_popin.rs +++ b/src/utils/guild_popin.rs @@ -30,6 +30,7 @@ fn init_pop_state() -> GuildPopIn { } async fn popin(ctx: Context, guild: Guild) { + println!("Gonna join, I'll do it"); let mut most = None; let mut n = 0; for (id,chan) in guild.channels { @@ -47,7 +48,6 @@ async fn popin(ctx: Context, guild: Guild) { } }; - break; } }, None => { @@ -61,7 +61,9 @@ async fn popin(ctx: Context, guild: Guild) { .expect("Songbird: intialization"); let (_,_status) = manager.join(guild.id, chan).await; }, - None => {} + None => { + println!("No good channel to join") + } } () } @@ -78,6 +80,7 @@ async fn popin_soon(ctx: Context, guild: Guild) { start: popwhen.min, end: popwhen.max }); + println!("Joining in: {}", join_in); sleep(Duration::from_millis(join_in)); tokio::spawn(popin(ctx.clone(),guild)); }