diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-09-29 22:42:49 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-09-29 22:42:49 +0200 |
commit | ba38ac07dc702e7d734ec648fdb8d552c03c1458 (patch) | |
tree | 35355bb6ff7138a20e424356ab189058bb81362f /src/main.rs | |
parent | 9f6d275620e29295a41bcca342ee0da531664721 (diff) |
feat: login is now a private function0.1.0
It's called by the selection method. In this way it could make a re-login
when a session expires.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 11 |
1 files changed, 0 insertions, 11 deletions
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<dyn Error>> { 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) |