diff options
Diffstat (limited to 'bot/src/main.rs')
| -rw-r--r-- | bot/src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/src/main.rs b/bot/src/main.rs index 0a291fd8..92786ce1 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -7,10 +7,10 @@ use std::sync::Arc; struct State {} #[tokio::main] -async fn main() { +async fn main() -> anyhow::Result<()> { env_logger::init(); - let account = Account::offline("bot"); + let account = Account::microsoft("example2@example.com").await?; azalea::start(azalea::Options { account, @@ -21,6 +21,8 @@ async fn main() { }) .await .unwrap(); + + Ok(()) } async fn handle(bot: Client, event: Arc<Event>, _state: Arc<Mutex<State>>) -> anyhow::Result<()> { |
