diff --git a/.config/ai/scpt b/.config/ai/scpt index a447e15..b16ed58 160000 --- a/.config/ai/scpt +++ b/.config/ai/scpt @@ -1 +1 @@ -Subproject commit a447e15d0be30b3f749bcaa092ba101df63a125f +Subproject commit b16ed585525aa279c1caeae606b8e49cc6589c7a diff --git a/src/bot.rs b/src/bot.rs index aaa0695..354fd15 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -146,7 +146,7 @@ pub fn c_bot(c: &Context) { .await; w_cid(cid.to_string(), log_file(&"n1"), true); println!("{}", str_rep); - } else if com == "diffusers" || com == "/diffusers" { + } else if { com == "diffusers" || com == "/diffusers" } && handle == &admin{ let _output = Command::new(data_scpt(&"ai")) .arg(&"atproto").arg(&"diffusers") .arg(&handle) @@ -393,7 +393,7 @@ pub fn c_bot(c: &Context) { println!("{}", str_rep); w_cid(cid.to_string(), log_file(&"n1"), true); } - } else if com == "sh" && handle == &admin { + } else if { com == "sh" || com == "/sh" } && handle == &admin { println!("admin:{}", admin); let output = Command::new(data_scpt(&"ai")) .arg(&"atproto").arg(&"sh")