blob: 89c23a6f572e69f27e6ee5b7d9027f55bae48da0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
use azalea_client::{Account, Event};
#[tokio::main]
async fn main() {
println!("Hello, world!");
// let address = "95.111.249.143:10000";
let address = "localhost:58422";
// let response = azalea_client::ping::ping_server(&address.try_into().unwrap())
// .await
// .unwrap();
// println!("{}", response.description.to_ansi(None));
let account = Account::offline("bot");
let mut client = account.join(&address.try_into().unwrap()).await.unwrap();
println!("connected");
while let Some(e) = client.next().await {
match e {
Event::Login => {}
}
}
println!("done");
}
|