diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2022-06-08 23:37:54 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-08 23:37:54 +0000 |
| commit | 601637bd48fcba826da01725430268f706181449 (patch) | |
| tree | 5b58723b931450d358d7e4387d87cc8e8b9166b2 /bot | |
| parent | ea7249fb77a8e07d232600081c9c3df5f698d70f (diff) | |
| parent | fb1d419a3d4207a293a1ad6001253192f1b4d12f (diff) | |
| download | azalea-drasl-601637bd48fcba826da01725430268f706181449.tar.xz | |
Merge pull request #7 from mat-1/1.19
1.19
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/src/main.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bot/src/main.rs b/bot/src/main.rs index 76a5a15d..8ad74ec4 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -6,7 +6,7 @@ async fn main() { println!("Hello, world!"); // let address = "95.111.249.143:10000"; - let address = "192.168.2.234:50736"; + let address = "localhost:65519"; // let response = azalea_client::ping::ping_server(&address.try_into().unwrap()) // .await // .unwrap(); @@ -21,13 +21,13 @@ async fn main() { // TODO: have a "loaded" or "ready" event that fires when all chunks are loaded Event::Login => {} Event::Chat(p) => { - println!("{}", p.message.to_ansi(None)); - if p.message.to_ansi(None) == "<py5> ok" { - let state = client.state.lock().await; - let world = state.world.as_ref().unwrap(); - let c = world.get_block_state(&BlockPos::new(5, 78, -2)).unwrap(); - println!("block state: {:?}", c); - } + // println!("{}", p.message.to_ansi(None)); + // if p.message.to_ansi(None) == "<py5> ok" { + // let state = client.state.lock().await; + // let world = state.world.as_ref().unwrap(); + // let c = world.get_block_state(&BlockPos::new(5, 78, -2)).unwrap(); + // println!("block state: {:?}", c); + // } } } } |
