This commit is contained in:
parent
c12a9fe8ec
commit
65cd74fdb5
@ -17,10 +17,10 @@ use crate::data::Notify;
|
|||||||
|
|
||||||
pub fn c_bot(c: &Context) {
|
pub fn c_bot(c: &Context) {
|
||||||
let h = async {
|
let h = async {
|
||||||
let mut notify = notify::get_request(100).await;
|
let mut notify = notify::get_request(50).await;
|
||||||
if notify == "err" {
|
if notify == "err" {
|
||||||
refresh(c);
|
refresh(c);
|
||||||
notify = notify::get_request(100).await;
|
notify = notify::get_request(50).await;
|
||||||
}
|
}
|
||||||
let notify: Notify = serde_json::from_str(¬ify).unwrap();
|
let notify: Notify = serde_json::from_str(¬ify).unwrap();
|
||||||
let host = data_toml(&"host");
|
let host = data_toml(&"host");
|
||||||
|
Loading…
Reference in New Issue
Block a user