aboutsummaryrefslogtreecommitdiff
path: root/bot/src/main.rs
blob: def38c3def337bd92a32b9bbf868bc90da8bfb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use minecraft_client;
use minecraft_protocol::ServerAddress;
use tokio::runtime::Runtime;

async fn bot() {
    let address = ServerAddress::parse(&"play.wynncraft.com".to_string()).unwrap();
    minecraft_protocol::server_status_pinger::ping_server(&address)
        .await
        .unwrap();
}

fn main() {
    println!("Hello, world!");

    let io_loop = Runtime::new().unwrap();
    io_loop.block_on(bot());
}