aboutsummaryrefslogtreecommitdiff
path: root/azalea
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-05-27 14:30:56 -0500
committermat <git@matdoes.dev>2023-05-27 14:30:56 -0500
commit2a2169226fb112082d91e8fca918c82cb47db7ef (patch)
treeb0016f3a1f63e24679d3bff8e0ddd66b8d25381e /azalea
parent881333035987867f897042df7173bb2fa05b7621 (diff)
downloadazalea-drasl-2a2169226fb112082d91e8fca918c82cb47db7ef.tar.xz
revert echo example
Diffstat (limited to 'azalea')
-rwxr-xr-xazalea/examples/echo.rs7
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() {