diff options
| author | mat <git@matdoes.dev> | 2023-05-27 01:57:31 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-05-27 01:57:31 -0500 |
| commit | 881333035987867f897042df7173bb2fa05b7621 (patch) | |
| tree | 283d44ea32bcb9119ec9546dcde59477012fc3bc /azalea/examples | |
| parent | 6188230009b49f96b755ade32a28b932e7810196 (diff) | |
| download | azalea-drasl-881333035987867f897042df7173bb2fa05b7621.tar.xz | |
random fixes mostly related to auth and crypto
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) |
