1
0

fix admin
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 14s

This commit is contained in:
syui 2024-04-12 08:22:54 +09:00
parent e7c06cf9d1
commit 5d60645c0f
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit a447e15d0be30b3f749bcaa092ba101df63a125f
Subproject commit b16ed585525aa279c1caeae606b8e49cc6589c7a

View File

@ -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")