Language changes

This commit is contained in:
ErrorNoInternet 2023-01-18 19:19:11 +08:00
parent 45747625e7
commit c2cbd5b72d
Signed by untrusted user who does not match committer: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -340,13 +340,17 @@ async fn handle(mut client: Client, event: Event, mut state: State) -> anyhow::R
}
let after_count = mob_locations.len();
*state.mob_locations.lock().unwrap() = mob_locations;
let removed_count = before_count - after_count;
let mut label = "mobs";
if removed_count == 1 {
label = "mob";
}
log_message(
Bot,
&format!(
"Successfully cleaned {} mobs ({} -> {})",
before_count - after_count,
before_count,
after_count
"Successfully removed {} {} ({} -> {})",
removed_count, label, before_count, after_count
),
);
}