spam reduction & config command

This commit is contained in:
2025-02-25 19:15:41 +01:00
parent 24e820e464
commit 2423e62c06
8 changed files with 53 additions and 10 deletions
+4 -2
View File
@@ -65,8 +65,10 @@ pub async fn send_cmd_json(func_name: &str, func_args: Option<Value>) -> Option<
}
let r = receive_response().await;
rs_println!("Received from Python: [RESPONSE] {:?}", r);
if !["respond_mentions"].contains(&func_name) || <Args as clap::Parser>::parse().dev {
rs_println!("Received from Python: [RESPONSE] {:?}", r);
}
if r.is_none() {
rs_println!("--- Response from Python is None!");
}