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"); }