Add disconnect message
This commit is contained in:
parent
23ea5d41d9
commit
1ecbda2943
@ -125,6 +125,10 @@ async fn main() {
|
|||||||
Ok(_) => (),
|
Ok(_) => (),
|
||||||
Err(error) => log_message(Error, &format!("An error occurred: {}", error)),
|
Err(error) => log_message(Error, &format!("An error occurred: {}", error)),
|
||||||
}
|
}
|
||||||
|
log_message(
|
||||||
|
Bot,
|
||||||
|
&"ErrorNoWatcher has lost connection, reconnecting in 5 seconds...".to_string(),
|
||||||
|
);
|
||||||
std::thread::sleep(std::time::Duration::from_secs(5));
|
std::thread::sleep(std::time::Duration::from_secs(5));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user