From 2c3bf3b79e133acd01580144771a7cf238ecc4ee Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 12 Dec 2021 13:52:32 -0600 Subject: move ping over to minecraft-client --- bot/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bot/src') diff --git a/bot/src/main.rs b/bot/src/main.rs index ec2f5954..75a11dfd 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -1,11 +1,10 @@ +use minecraft_client::ping; use minecraft_protocol::ServerAddress; use tokio::runtime::Runtime; async fn bot() { let address = ServerAddress::parse(&"mc.hypixel.net".to_string()).unwrap(); - let response = minecraft_protocol::server_status_pinger::ping_server(&address) - .await - .unwrap(); + let response = ping::ping_server(&address).await.unwrap(); println!("{}", response.description.to_ansi(None)); } -- cgit v1.2.3