use std::io;
use nurtex::create_bot;
use nurtex::utils::time::sleep;
#[tokio::main]
async fn main() -> io::Result<()> {
let mut bot = create_bot("NurtexBot");
let terminal = bot.get_terminal();
tokio::spawn(async move {
sleep(5000).await;
terminal.chat("Привет, мир!").await;
});
bot.connect_to("localhost", 25565).await
}