aboutsummaryrefslogtreecommitdiff
path: root/bot/src/main.rs
blob: 4e7b3d755b723d1450cff2c138374d992b3ade34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use azalea_client::connect::join_server;
use tokio::runtime::Runtime;

async fn bot() {
    let address = "95.111.249.143:10000";
    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());
}