From 6529fa02b5a751f7beedfb2d7eebe07d1244f475 Mon Sep 17 00:00:00 2001 From: Jacob Date: Sun, 24 May 2026 19:34:44 -0400 Subject: [PATCH] feat: in the default heat algorithm, check if the bot owner is undeafened to decide if the score should be capped (so that if another vc has another unmuted person it prioritizes that one) --- src/heat_seek.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/heat_seek.rs b/src/heat_seek.rs index 8eae55d..768b999 100644 --- a/src/heat_seek.rs +++ b/src/heat_seek.rs @@ -169,7 +169,9 @@ async fn get_heat( } } - if bot_owner.is_some() { + let bot_owner_might_be_listening = bot_owner.is_some_and(|user_data| matches!(user_data.headphone, Headphone::Undeafened)); + + if bot_owner_might_be_listening { heat = heat.min(999); }