blob: 75a11dfd08d126a87ce525ece44303d7e9cfe920 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use minecraft_client::ping;
use minecraft_protocol::ServerAddress;
use tokio::runtime::Runtime;
async fn bot() {
let address = ServerAddress::parse(&"mc.hypixel.net".to_string()).unwrap();
let response = ping::ping_server(&address).await.unwrap();
println!("{}", response.description.to_ansi(None));
}
fn main() {
println!("Hello, world!");
let io_loop = Runtime::new().unwrap();
io_loop.block_on(bot());
}
|