From 54b48e3f2a002ab0dcb61f94ad02598e7a683e3c Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Thu, 26 Jan 2023 17:22:44 +0800 Subject: [PATCH] Minor changes --- src/bot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot.rs b/src/bot.rs index d1dd107..6e41152 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -270,7 +270,7 @@ pub async fn process_command( for (player, position_time_data) in player_locations { if player.username == segments[0] || player.uuid.to_string() == segments[0] { return format!( - "{} was last seen at {}, {}, {} ({})", + "{} was last seen at {} {} {} ({})", segments[0], position_time_data.position[0], position_time_data.position[1], @@ -376,7 +376,7 @@ pub async fn process_command( let mut found = true; let player_locations = state.player_locations.lock().unwrap().to_owned(); - for (player, _position_time_data) in player_locations { + for (player, _) in player_locations { if player.username == segments[0] || player.uuid.to_string() == segments[0] { found = true; *state.followed_player.lock().unwrap() = Some(player.to_owned());