aboutsummaryrefslogtreecommitdiff
path: root/bot/src
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src')
-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());
-}