From 4fc4a401d6972de54cf8d7ef7eb25a761054a69c Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Fri, 20 Jan 2023 15:23:59 +0800 Subject: [PATCH] Print alert message in console --- src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.rs b/src/main.rs index fcf6a8d..fce5217 100644 --- a/src/main.rs +++ b/src/main.rs @@ -284,6 +284,13 @@ async fn handle(mut client: Client, event: Event, mut state: State) -> anyhow::R let alert_queue = state.alert_queue.lock().unwrap().to_owned(); for (intruder, position) in alert_queue { + log_message( + Bot, + &format!( + "{} is in the specified alert radius at {} {} {}!", + intruder, position[0], position[1], position[2] + ), + ); let alert_players = state.alert_players.lock().unwrap().to_vec(); for alert_player in alert_players { log_error(