From 087324b785dfb486572e9cd00a7d32b38e318519 Mon Sep 17 00:00:00 2001 From: bluepython508 <16466646+bluepython508@users.noreply.github.com> Date: Sun, 3 Nov 2024 22:22:28 +0000 Subject: [PATCH] Shuffle channels in addition to users --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index ee76323..d8a6cad 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,6 @@ use rand::seq::SliceRandom; use rusqlite::OptionalExtension; // TODO: buttons? -// TODO: shuffle channels as well as users/instead of users? #[derive(Copy, Clone)] struct GuildData { @@ -95,7 +94,8 @@ async fn run(ctx: Context<'_>, from: serenity::ChannelId, to: serenity::ChannelI .collect::>(); users.shuffle(&mut rand::thread_rng()); - let to = channels_for(to)?; + let mut to = channels_for(to)?; + to.shuffle(&mut rand::thread_rng()); futures::future::try_join_all( to.into_iter()