Add a loop to Matrix login

This commit is contained in:
ErrorNoInternet
2023-01-29 13:59:18 +08:00
parent 2e229b70d9
commit 70108247d4
2 changed files with 64 additions and 62 deletions

View File

@@ -126,6 +126,7 @@ async fn main() {
let matrix_configuration = bot_configuration.matrix.to_owned();
if matrix_configuration.enabled {
log_message(Matrix, &"Matrix is enabled! Logging in...".to_string());
tokio::spawn(login_and_sync(matrix_configuration, state.clone()));
}