use std::time::Duration;
use nurtex::proxy::{Proxy, ProxyType};
use nurtex::{Bot, BotChatExt};
const PROXY_ADDRESS: &str = "YOUR_SOCKS5_PROXY";
const SERVER_HOST: &str = "PUBLIC_HOST";
#[tokio::main]
async fn main() -> std::io::Result<()> {
let proxy = Proxy::new(PROXY_ADDRESS, ProxyType::Socks5);
let mut bot = Bot::create_with_proxy("nurtex_bot", proxy);
bot.connect(SERVER_HOST, 25565);
tokio::time::sleep(Duration::from_secs(8)).await;
bot.chat_message(format!("Привет, я {}!", bot.username())).await?;
bot.wait_handle().await
}