From 3bd32cfa00e8b50b47267ab75a4ff8892ae89d54 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 29 Apr 2022 00:40:47 -0500 Subject: how do i do this --- bot/src/main.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'bot') diff --git a/bot/src/main.rs b/bot/src/main.rs index 14fc9656..8ae4ba1e 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -3,15 +3,17 @@ async fn main() { println!("Hello, world!"); // let address = "95.111.249.143:10000"; - // let address = "localhost:52467"; - let address = "localhost:25566"; + let address = "localhost:53193"; // 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(); + let account = azalea_client::Account::offline("bot"); + let client = account.join(&address.try_into().unwrap()).await.unwrap(); println!("connected"); + + // loop { + // match client.next().await {} + // } } -- cgit v1.2.3