forked from Roflin/gamenight
Fixes leave on the server and reworked login flow.
This commit is contained in:
@@ -2,11 +2,13 @@ pub mod flows;
|
||||
pub mod domain;
|
||||
|
||||
use flows::{main::Main, Flow, GamenightState};
|
||||
use clear_screen;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let mut state = GamenightState::new();
|
||||
let mainflow = Main::new();
|
||||
clear_screen::clear();
|
||||
if let Err(x) = mainflow.run(&mut state).await {
|
||||
println!("{}", x.error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user