Compare commits

..

4 Commits

Author SHA1 Message Date
6e1b0c597b rm lexicon
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
2024-12-27 16:39:39 +09:00
b3f0cdd622 add game 2024-12-27 16:39:38 +09:00
454de01881 add lexicons
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
2024-11-09 09:51:05 +09:00
57365a41a5 add card 2024-11-09 09:51:05 +09:00
4 changed files with 4 additions and 39 deletions

View File

@ -1,7 +1,9 @@
FROM syui/aios FROM syui/aios
ADD .ssh /root/.ssh
WORKDIR /root WORKDIR /root
ADD ./test/entrypoint.sh . ADD ./test/entrypoint.sh .
RUN chmod +x /root/entrypoint.sh RUN chmod +x /root/entrypoint.sh
RUN pacman -Syu bc --noconfirm
ENTRYPOINT ["/root/entrypoint.sh"] ENTRYPOINT ["/root/entrypoint.sh"]

View File

@ -431,42 +431,6 @@ pub fn c_bot(c: &Context) {
println!("{}", str_rep); println!("{}", str_rep);
w_cid(cid.to_string(), log_file(&"n1"), true); w_cid(cid.to_string(), log_file(&"n1"), true);
} }
} else if com == "game" || com == "/game" {
let output = Command::new(data_scpt(&"ai"))
.arg(&"atproto").arg(&"game")
.arg(&handle)
.arg(&did)
.arg(&cid)
.arg(&uri)
.arg(&cid_root)
.arg(&uri_root)
.arg(&host)
.arg(&prompt)
.arg(&prompt_sub)
.output()
.expect("zsh");
let d = String::from_utf8_lossy(&output.stdout);
let dd = "\n".to_owned() + &d.to_string();
let text_limit = c_char(dd);
handlev = d.lines().collect::<Vec<_>>()[0].to_string();
link = "https://card.syui.ai/".to_owned() + &handlev;
println!("{}", e);
e = link.chars().count();
if text_limit.len() > 3 {
let str_rep = reply_link::post_request(
text_limit.to_string(),
link.to_string(),
s,
e.try_into().unwrap(),
cid.to_string(),
uri.to_string(),
cid_root.to_string(),
uri_root.to_string(),
)
.await;
println!("{}", str_rep);
w_cid(cid.to_string(), log_file(&"n1"), true);
}
} else if com == "quiz" || com == "/quiz" { } else if com == "quiz" || com == "/quiz" {
println!("admin:{}", admin); println!("admin:{}", admin);
let output = Command::new(data_scpt(&"ai")) let output = Command::new(data_scpt(&"ai"))

View File

@ -1,4 +1,3 @@
#!/bin/zsh #!/bin/zsh
#ai l $HANDLE -p $PASSWORD -s $HOST ai l $HANDLE -p $PASSWORD -s $HOST && ai bot -a $ADMIN
ai bot -a $ADMIN