Compare commits

...

2 Commits

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);
}
@@ -249,7 +251,7 @@ async fn map_heat(
let mut changed = false;
for (&channel, &heat) in &*channel_heat_watcher.borrow() {
let existing = heat_map.insert(heat, channel);
if existing.map_or(true, |(old_heat, old_channel)| {
if existing.is_none_or(|(old_heat, old_channel)| {
old_heat != heat || channel != old_channel
}) {
changed = true;