diff options
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/src/main.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/bot/src/main.rs b/bot/src/main.rs index 92786ce1..beed4320 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -10,7 +10,7 @@ struct State {} async fn main() -> anyhow::Result<()> { env_logger::init(); - let account = Account::microsoft("example2@example.com").await?; + let account = Account::microsoft("example@example.com").await?; azalea::start(azalea::Options { account, @@ -26,8 +26,14 @@ 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(); + match *event { + Event::Login => { + bot.chat("Hello world").await?; + } + Event::Tick => { + bot.jump(); + } + _ => {} } Ok(()) |
