From 97856f376513c98bc645a9fbeab2a1e2ceffbe05 Mon Sep 17 00:00:00 2001 From: syui Date: Thu, 7 Mar 2024 06:09:17 +0900 Subject: [PATCH] add host --- .config/ai/scpt | 2 +- src/bot.rs | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.config/ai/scpt b/.config/ai/scpt index bd22a13..f1f1f67 160000 --- a/.config/ai/scpt +++ b/.config/ai/scpt @@ -1 +1 @@ -Subproject commit bd22a134aa736b2f32d414a88f81bdfa084587ec +Subproject commit f1f1f67b612d758fe3beef7610c05b2a309ae96f diff --git a/src/bot.rs b/src/bot.rs index 5e3865d..c4c943a 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -10,6 +10,7 @@ use crate::reply_link; use crate::data::c_char; use crate::data::data_scpt; +use crate::data::data_toml; use crate::data::log_file; use crate::data::w_cid; use crate::data::Notify; @@ -22,7 +23,7 @@ pub fn c_bot(c: &Context) { notify = notify::get_request(100).await; } let notify: Notify = serde_json::from_str(¬ify).unwrap(); - + let host = data_toml(&"host"); let n = notify.notifications; let length = &n.len(); let su = 0..*length; @@ -143,6 +144,7 @@ pub fn c_bot(c: &Context) { .arg(&uri) .arg(&cid_root) .arg(&uri_root) + .arg(&host) .arg(&prompt) .arg(&prompt_sub) .output() @@ -160,6 +162,7 @@ pub fn c_bot(c: &Context) { .arg(&uri) .arg(&cid_root) .arg(&uri_root) + .arg(&host) .arg(&prompt) .arg(&prompt_sub) .output() @@ -180,6 +183,7 @@ pub fn c_bot(c: &Context) { .arg(&uri) .arg(&cid_root) .arg(&uri_root) + .arg(&host) .arg(&prompt) .arg(&prompt_sub) .output() @@ -229,6 +233,7 @@ pub fn c_bot(c: &Context) { .arg(&uri) .arg(&cid_root) .arg(&uri_root) + .arg(&host) .arg(&prompt) .arg(&prompt_sub) .output() @@ -260,6 +265,7 @@ pub fn c_bot(c: &Context) { .arg(&uri) .arg(&cid_root) .arg(&uri_root) + .arg(&host) .arg(&prompt) .arg(&prompt_sub) .output() @@ -291,6 +297,7 @@ pub fn c_bot(c: &Context) { .arg(&uri) .arg(&cid_root) .arg(&uri_root) + .arg(&host) .arg(&prompt) .arg(&prompt_sub) .output() @@ -320,6 +327,7 @@ pub fn c_bot(c: &Context) { .arg(&uri) .arg(&cid_root) .arg(&uri_root) + .arg(&host) .arg(&prompt) .arg(&prompt_sub) .output() @@ -351,6 +359,7 @@ pub fn c_bot(c: &Context) { .arg(&uri) .arg(&cid_root) .arg(&uri_root) + .arg(&host) .arg(&prompt) .arg(&prompt_sub) .output() @@ -383,6 +392,7 @@ pub fn c_bot(c: &Context) { .arg(&uri) .arg(&cid_root) .arg(&uri_root) + .arg(&host) .arg(&prompt) .arg(&prompt_sub) .output() @@ -410,6 +420,7 @@ pub fn c_bot(c: &Context) { .arg(&uri) .arg(&cid_root) .arg(&uri_root) + .arg(&host) .arg(&prompt) .arg(&prompt_sub) .output()