add host
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
This commit is contained in:
parent
7b03adda1f
commit
f57eebc6dc
@ -1 +1 @@
|
|||||||
Subproject commit bd22a134aa736b2f32d414a88f81bdfa084587ec
|
Subproject commit d02d5175871e46dedad19cc1db44dc9fb7855c4a
|
13
src/bot.rs
13
src/bot.rs
@ -10,6 +10,7 @@ use crate::reply_link;
|
|||||||
|
|
||||||
use crate::data::c_char;
|
use crate::data::c_char;
|
||||||
use crate::data::data_scpt;
|
use crate::data::data_scpt;
|
||||||
|
use crate::data::data_toml;
|
||||||
use crate::data::log_file;
|
use crate::data::log_file;
|
||||||
use crate::data::w_cid;
|
use crate::data::w_cid;
|
||||||
use crate::data::Notify;
|
use crate::data::Notify;
|
||||||
@ -22,7 +23,7 @@ pub fn c_bot(c: &Context) {
|
|||||||
notify = notify::get_request(100).await;
|
notify = notify::get_request(100).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 n = notify.notifications;
|
let n = notify.notifications;
|
||||||
let length = &n.len();
|
let length = &n.len();
|
||||||
let su = 0..*length;
|
let su = 0..*length;
|
||||||
@ -145,6 +146,7 @@ pub fn c_bot(c: &Context) {
|
|||||||
.arg(&uri_root)
|
.arg(&uri_root)
|
||||||
.arg(&prompt)
|
.arg(&prompt)
|
||||||
.arg(&prompt_sub)
|
.arg(&prompt_sub)
|
||||||
|
.arg(&host)
|
||||||
.output()
|
.output()
|
||||||
.expect("zsh");
|
.expect("zsh");
|
||||||
w_cid(cid.to_string(), log_file(&"n1"), true);
|
w_cid(cid.to_string(), log_file(&"n1"), true);
|
||||||
@ -162,6 +164,7 @@ pub fn c_bot(c: &Context) {
|
|||||||
.arg(&uri_root)
|
.arg(&uri_root)
|
||||||
.arg(&prompt)
|
.arg(&prompt)
|
||||||
.arg(&prompt_sub)
|
.arg(&prompt_sub)
|
||||||
|
.arg(&host)
|
||||||
.output()
|
.output()
|
||||||
.expect("zsh");
|
.expect("zsh");
|
||||||
let d = String::from_utf8_lossy(&output.stdout);
|
let d = String::from_utf8_lossy(&output.stdout);
|
||||||
@ -182,6 +185,7 @@ pub fn c_bot(c: &Context) {
|
|||||||
.arg(&uri_root)
|
.arg(&uri_root)
|
||||||
.arg(&prompt)
|
.arg(&prompt)
|
||||||
.arg(&prompt_sub)
|
.arg(&prompt_sub)
|
||||||
|
.arg(&host)
|
||||||
.output()
|
.output()
|
||||||
.expect("zsh");
|
.expect("zsh");
|
||||||
let d = String::from_utf8_lossy(&output.stdout);
|
let d = String::from_utf8_lossy(&output.stdout);
|
||||||
@ -231,6 +235,7 @@ pub fn c_bot(c: &Context) {
|
|||||||
.arg(&uri_root)
|
.arg(&uri_root)
|
||||||
.arg(&prompt)
|
.arg(&prompt)
|
||||||
.arg(&prompt_sub)
|
.arg(&prompt_sub)
|
||||||
|
.arg(&host)
|
||||||
.output()
|
.output()
|
||||||
.expect("zsh");
|
.expect("zsh");
|
||||||
let d = String::from_utf8_lossy(&output.stdout);
|
let d = String::from_utf8_lossy(&output.stdout);
|
||||||
@ -262,6 +267,7 @@ pub fn c_bot(c: &Context) {
|
|||||||
.arg(&uri_root)
|
.arg(&uri_root)
|
||||||
.arg(&prompt)
|
.arg(&prompt)
|
||||||
.arg(&prompt_sub)
|
.arg(&prompt_sub)
|
||||||
|
.arg(&host)
|
||||||
.output()
|
.output()
|
||||||
.expect("zsh");
|
.expect("zsh");
|
||||||
let d = String::from_utf8_lossy(&output.stdout);
|
let d = String::from_utf8_lossy(&output.stdout);
|
||||||
@ -293,6 +299,7 @@ pub fn c_bot(c: &Context) {
|
|||||||
.arg(&uri_root)
|
.arg(&uri_root)
|
||||||
.arg(&prompt)
|
.arg(&prompt)
|
||||||
.arg(&prompt_sub)
|
.arg(&prompt_sub)
|
||||||
|
.arg(&host)
|
||||||
.output()
|
.output()
|
||||||
.expect("zsh");
|
.expect("zsh");
|
||||||
let d = String::from_utf8_lossy(&output.stdout);
|
let d = String::from_utf8_lossy(&output.stdout);
|
||||||
@ -322,6 +329,7 @@ pub fn c_bot(c: &Context) {
|
|||||||
.arg(&uri_root)
|
.arg(&uri_root)
|
||||||
.arg(&prompt)
|
.arg(&prompt)
|
||||||
.arg(&prompt_sub)
|
.arg(&prompt_sub)
|
||||||
|
.arg(&host)
|
||||||
.output()
|
.output()
|
||||||
.expect("zsh");
|
.expect("zsh");
|
||||||
let d = String::from_utf8_lossy(&output.stdout);
|
let d = String::from_utf8_lossy(&output.stdout);
|
||||||
@ -353,6 +361,7 @@ pub fn c_bot(c: &Context) {
|
|||||||
.arg(&uri_root)
|
.arg(&uri_root)
|
||||||
.arg(&prompt)
|
.arg(&prompt)
|
||||||
.arg(&prompt_sub)
|
.arg(&prompt_sub)
|
||||||
|
.arg(&host)
|
||||||
.output()
|
.output()
|
||||||
.expect("zsh");
|
.expect("zsh");
|
||||||
let d = String::from_utf8_lossy(&output.stdout);
|
let d = String::from_utf8_lossy(&output.stdout);
|
||||||
@ -385,6 +394,7 @@ pub fn c_bot(c: &Context) {
|
|||||||
.arg(&uri_root)
|
.arg(&uri_root)
|
||||||
.arg(&prompt)
|
.arg(&prompt)
|
||||||
.arg(&prompt_sub)
|
.arg(&prompt_sub)
|
||||||
|
.arg(&host)
|
||||||
.output()
|
.output()
|
||||||
.expect("zsh");
|
.expect("zsh");
|
||||||
let d = String::from_utf8_lossy(&output.stdout);
|
let d = String::from_utf8_lossy(&output.stdout);
|
||||||
@ -412,6 +422,7 @@ pub fn c_bot(c: &Context) {
|
|||||||
.arg(&uri_root)
|
.arg(&uri_root)
|
||||||
.arg(&prompt)
|
.arg(&prompt)
|
||||||
.arg(&prompt_sub)
|
.arg(&prompt_sub)
|
||||||
|
.arg(&host)
|
||||||
.output()
|
.output()
|
||||||
.expect("zsh");
|
.expect("zsh");
|
||||||
let d = String::from_utf8_lossy(&output.stdout);
|
let d = String::from_utf8_lossy(&output.stdout);
|
||||||
|
Loading…
Reference in New Issue
Block a user