diff options
Diffstat (limited to 'azalea/examples/echo.rs')
| -rwxr-xr-x | azalea/examples/echo.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/azalea/examples/echo.rs b/azalea/examples/echo.rs index 8cbd15f7..dbf56a31 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"); - let account = Account::microsoft("minecraft3@matdoes.dev").await.unwrap(); + let account = Account::offline("bot"); + // or let account = Account::microsoft("email").await.unwrap(); ClientBuilder::new() .set_handler(handle) - .start(account, "85.190.131.233") + .start(account, "localhost") .await .unwrap(); } @@ -18,7 +18,6 @@ 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() { |
