mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
Update main.rs
This commit is contained in:
parent
38e03fc8d0
commit
220dffa8c6
1 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ struct State {}
|
|||
async fn main() -> anyhow::Result<()> {
|
||||
env_logger::init();
|
||||
|
||||
let account = Account::microsoft("example@example.com").await?;
|
||||
let account = Account::microsoft("example2@example.com").await?;
|
||||
|
||||
azalea::start(azalea::Options {
|
||||
account,
|
||||
|
@ -26,9 +26,9 @@ async fn main() -> anyhow::Result<()> {
|
|||
}
|
||||
|
||||
async fn handle(bot: Client, event: Arc<Event>, _state: Arc<Mutex<State>>) -> anyhow::Result<()> {
|
||||
// if let Event::Tick = *event {
|
||||
// bot.jump();
|
||||
// }
|
||||
if let Event::Tick = *event {
|
||||
bot.jump();
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue