From ba38ac07dc702e7d734ec648fdb8d552c03c1458 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 29 Sep 2021 22:42:49 +0200 Subject: feat: login is now a private function It's called by the selection method. In this way it could make a re-login when a session expires. --- src/main.rs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 136db38..abd70b8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,17 +21,6 @@ async fn main() -> Result<(), Box> { unsafe { // Open the browser browser::init(&config).await; - - // Login using the credentials inside the `config` - match browser::login(&config).await { - Ok(_) => { - log::info!("Logged in Smartedu"); - } - Err(e) => { - // Using the bot when the user is not logged in, is simply useless. - panic!("You can't connect: `{}`, credentials are {:?}", e, config); - } - } } Dispatcher::new(bot) -- cgit v1.2.3-18-g5258