diff options
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/src/main.rs | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/bot/src/main.rs b/bot/src/main.rs index e4543b6a..6e66d2ee 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -8,17 +8,20 @@ struct State {} async fn main() -> anyhow::Result<()> { env_logger::init(); - let account = Account::microsoft("example@example.com").await?; + // let account = Account::microsoft("example@example.com").await?; + let account = Account::offline("bot"); - azalea::start(azalea::Options { - account, - address: "localhost", - state: State::default(), - plugins: vec![], - handle, - }) - .await - .unwrap(); + loop { + let e = azalea::start(azalea::Options { + account: account.clone(), + address: "localhost", + state: State::default(), + plugins: vec![], + handle, + }) + .await; + println!("{:?}", e); + } Ok(()) } |
