diff options
| author | mat <github@matdoes.dev> | 2022-04-29 00:40:47 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-29 00:40:47 -0500 |
| commit | 3bd32cfa00e8b50b47267ab75a4ff8892ae89d54 (patch) | |
| tree | b159bc4e7a4f27b7ffd25505d081e5dd12b285de /bot/src/main.rs | |
| parent | b6fb96429c4530530f46e5deb5998f2249e5124e (diff) | |
| download | azalea-drasl-3bd32cfa00e8b50b47267ab75a4ff8892ae89d54.tar.xz | |
how do i do this
Diffstat (limited to 'bot/src/main.rs')
| -rw-r--r-- | bot/src/main.rs | 12 |
1 files changed, 7 insertions, 5 deletions
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 {} + // } } |
