diff options
Diffstat (limited to 'azalea/examples/echo.rs')
| -rwxr-xr-x | azalea/examples/echo.rs | 7 |
1 files changed, 4 insertions, 3 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() { |
