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)

This commit is contained in:
2026-05-24 19:34:44 -04:00
parent b2222384f5
commit 6529fa02b5

View File

@@ -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); heat = heat.min(999);
} }