diff options
Diffstat (limited to 'azalea/examples')
| -rwxr-xr-x | azalea/examples/echo.rs | 7 | ||||
| -rw-r--r-- | azalea/examples/steal.rs | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/azalea/examples/echo.rs b/azalea/examples/echo.rs index 292e12cd..8cbd15f7 100755 --- a/azalea/examples/echo.rs +++ b/azalea/examples/echo.rs @@ -4,12 +4,12 @@ use azalea::prelude::*; #[tokio::main] async fn main() { - let account = Account::offline("bot"); - // or let account = Account::microsoft("email").await; + // let account = Account::offline("bot"); + let account = Account::microsoft("minecraft3@matdoes.dev").await.unwrap(); ClientBuilder::new() .set_handler(handle) - .start(account, "localhost") + .start(account, "85.190.131.233") .await .unwrap(); } @@ -18,6 +18,7 @@ async fn main() { pub struct State {} async fn handle(bot: Client, event: Event, _state: State) -> anyhow::Result<()> { + std::process::exit(0); match event { Event::Chat(m) => { if let (Some(sender), content) = m.split_sender_and_content() { diff --git a/azalea/examples/steal.rs b/azalea/examples/steal.rs index 3302079a..7a7ee4bb 100644 --- a/azalea/examples/steal.rs +++ b/azalea/examples/steal.rs @@ -9,7 +9,7 @@ use std::sync::Arc; #[tokio::main] async fn main() { let account = Account::offline("bot"); - // or let bot = Account::microsoft("email").await; + // or let bot = Account::microsoft("email").await.unwrap(); ClientBuilder::new() .set_handler(handle) |
