From 60674d71275ac576162898386182f9e9c72dc623 Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Tue, 17 Jan 2023 17:14:15 +0800 Subject: [PATCH] Language changes --- src/bot.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bot.rs b/src/bot.rs index eace168..21ebb0a 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -178,7 +178,7 @@ pub async fn process_command( } Command::WhitelistAdd => { if segments.len() < 1 { - return "Please tell me the name of the player!".to_string(); + return "Please tell me the name of a player!".to_string(); } let mut whitelist = state.whitelist.lock().unwrap().to_vec(); @@ -194,7 +194,7 @@ pub async fn process_command( } Command::WhitelistRemove => { if segments.len() < 1 { - return "Please tell me the name of the player!".to_string(); + return "Please tell me the name of a player!".to_string(); } let mut whitelist = state.whitelist.lock().unwrap().to_vec(); @@ -215,7 +215,7 @@ pub async fn process_command( } Command::LastLocation => { if segments.len() < 1 { - return "Please tell me the name of the player!".to_string(); + return "Please tell me the name of a player!".to_string(); } for (player, position_time_data) in state.player_locations.lock().unwrap().iter() { @@ -237,7 +237,7 @@ pub async fn process_command( } Command::LastOnline => { if segments.len() < 1 { - return "Please tell me the name of the player!".to_string(); + return "Please tell me a page number or the name of a player!".to_string(); } if segments[0].parse::().is_ok() { @@ -322,7 +322,7 @@ pub async fn process_command( } Command::FollowPlayer => { if segments.len() < 1 { - return "Please tell me the name of the player!".to_string(); + return "Please tell me the name of a player!".to_string(); }; let mut found = true;