From 5029a09963b5753c1f9b7f777f28e1c0951343e7 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 6 Dec 2021 00:28:40 -0600 Subject: Initial commit --- bot/src/main.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 bot/src/main.rs (limited to 'bot/src') diff --git a/bot/src/main.rs b/bot/src/main.rs new file mode 100644 index 00000000..def38c3d --- /dev/null +++ b/bot/src/main.rs @@ -0,0 +1,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()); +} -- cgit v1.2.3