From 999116ed7c5edf113e12aae150c2e23974d539dc Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 16 Dec 2021 16:00:59 -0600 Subject: add map to mc_buf --- bot/src/main.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'bot/src') diff --git a/bot/src/main.rs b/bot/src/main.rs index 4e7b3d75..f6a8d872 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -1,16 +1,11 @@ use azalea_client::connect::join_server; -use tokio::runtime::Runtime; -async fn bot() { +#[tokio::main] +async fn main() { + println!("Hello, world!"); + 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()); -} -- cgit v1.2.3