1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

revert echo example

This commit is contained in:
mat 2023-05-27 14:30:56 -05:00
parent 8813330359
commit 2a2169226f

View file

@ -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() {