aboutsummaryrefslogtreecommitdiff
path: root/bot
diff options
context:
space:
mode:
Diffstat (limited to 'bot')
-rw-r--r--bot/src/main.rs12
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 {}
+ // }
}