aboutsummaryrefslogtreecommitdiff
path: root/bot/src
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src')
-rw-r--r--bot/src/main.rs5
1 files changed, 2 insertions, 3 deletions
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));
}