blob: 2d62208d2b4708132c217d76b7bacb4850f17f45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use minecraft_client::{connect::join_server, ping::ping_server};
use tokio::runtime::Runtime;
async fn bot() {
let address = "localhost:63425";
let response = join_server(&address.try_into().unwrap()).await.unwrap();
// println!("{}", response.description.to_ansi(None));
println!("connected");
}
fn main() {
println!("Hello, world!");
let io_loop = Runtime::new().unwrap();
io_loop.block_on(bot());
}
|