aboutsummaryrefslogtreecommitdiff
path: root/bot/src/main.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-12-12 13:52:32 -0600
committermat <github@matdoes.dev>2021-12-12 13:52:32 -0600
commit2c3bf3b79e133acd01580144771a7cf238ecc4ee (patch)
treeea134df743df2c022d88ea41269e2f70ce84b0b1 /bot/src/main.rs
parent6ed7b6e38fb8a3f4517c300807ce85ffb1952055 (diff)
downloadazalea-drasl-2c3bf3b79e133acd01580144771a7cf238ecc4ee.tar.xz
move ping over to minecraft-client
Diffstat (limited to 'bot/src/main.rs')
-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));
}