diff --git a/src/bot/commands/lobby.rs b/src/bot/commands/lobby.rs index 1f76df4..d324459 100644 --- a/src/bot/commands/lobby.rs +++ b/src/bot/commands/lobby.rs @@ -429,7 +429,7 @@ impl LobbyCommand { // let msg = interaction.get_interaction_response(ctx).await.unwrap(); let collector = msg .await_component_interactions(ctx) - .timeout(Duration::from_secs(2 * 60)) + .timeout(Duration::from_secs(10 * 60)) .guild_id(interaction.guild_id.unwrap()) .channel_id(interaction.channel_id) .author_id(interaction.user.id) diff --git a/src/main.rs b/src/main.rs index 0231c86..538286a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -34,7 +34,7 @@ impl TypeMapKey for CreatorContainer { #[shuttle_runtime::main] async fn serenity( #[shuttle_shared_db::Postgres( - local_uri = "postgres://postgres:{secrets.PASSWORD}@localhost:5432/postgres" + // local_uri = "postgres://postgres:{secrets.PASSWORD}@localhost:5432/postgres" )] pool: PgPool, #[shuttle_secrets::Secrets] secret_store: SecretStore, diff --git a/src/mixer/mixer.rs b/src/mixer/mixer.rs index a838de1..75b13a9 100644 --- a/src/mixer/mixer.rs +++ b/src/mixer/mixer.rs @@ -42,7 +42,7 @@ fn get_combinations(entries: &[PlayerRoleEntry], count: usize) -> Vec(); let b = b.iter().map(|e| e.priority).sum::(); - a.partial_cmp(&b).unwrap_or(Ordering::Equal) + b.partial_cmp(&a).unwrap_or(Ordering::Equal) }) .collect_vec() }