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:
parent
8813330359
commit
2a2169226f
1 changed files with 3 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue