mirror of
https://github.com/mat-1/azalea.git
synced 2024-09-19 14:42:32 +00:00
6eee543a33
Pathfinding is very much not done, but it works enough and I want to get this merged. TODO: fast replanning, goals that aren't a single node, falling moves (it should be able to play the dropper), parkour moves
19 lines
399 B
Rust
Executable file
19 lines
399 B
Rust
Executable file
use std::path::PathBuf;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
env_logger::init();
|
|
|
|
let cache_file = PathBuf::from("example_cache.json");
|
|
|
|
let auth_result = azalea_auth::auth(
|
|
"example@example.com",
|
|
azalea_auth::AuthOpts {
|
|
cache_file: Some(cache_file),
|
|
..Default::default()
|
|
},
|
|
)
|
|
.await
|
|
.unwrap();
|
|
println!("{auth_result:?}");
|
|
}
|