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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user