From c31c6fa7d003bc8440c749063c109b58669bdb80 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 22 Apr 2022 00:10:24 +0000 Subject: [PATCH] change to not ping --- azalea-client/src/connect.rs | 2 +- bot/src/main.rs | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs index 3f0a8560..7e6dba51 100644 --- a/azalea-client/src/connect.rs +++ b/azalea-client/src/connect.rs @@ -87,7 +87,7 @@ pub async fn join_server(address: &ServerAddress) -> Result<(), String> { } }, Err(e) => { - println!("Error: {:?}", e); + panic!("Error: {:?}", e); } } } diff --git a/bot/src/main.rs b/bot/src/main.rs index 957b3cbc..011c7d0d 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -1,14 +1,15 @@ -use azalea_client::connect::join_server; -use azalea_client::ping::ping_server; - #[tokio::main] async fn main() { println!("Hello, world!"); let address = "95.111.249.143:10000"; // let address = "localhost:63482"; - let response = ping_server(&address.try_into().unwrap()).await.unwrap(); - // let _response = join_server(&address.try_into().unwrap()).await.unwrap(); - println!("{}", response.description.to_ansi(None)); + // let response = azalea_client::ping::ping_server(&address.try_into().unwrap()) + // .await + // .unwrap(); + // println!("{}", response.description.to_ansi(None)); + let _response = azalea_client::connect::join_server(&address.try_into().unwrap()) + .await + .unwrap(); println!("connected"); }