aboutsummaryrefslogtreecommitdiff
path: root/bot
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-12-16 16:00:59 -0600
committermat <github@matdoes.dev>2021-12-16 16:00:59 -0600
commit999116ed7c5edf113e12aae150c2e23974d539dc (patch)
treeac0375d3a9c3647de7da22d1e7ce1496bcd2072d /bot
parentaea5ffaccb8d626ee1eaf6b5523b12c6b149820c (diff)
downloadazalea-drasl-999116ed7c5edf113e12aae150c2e23974d539dc.tar.xz
add map to mc_buf
Diffstat (limited to 'bot')
-rw-r--r--bot/src/main.rs13
1 files changed, 4 insertions, 9 deletions
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());
-}