diff --git a/.config/ai/scpt b/.config/ai/scpt index f1f1f67..dc082b2 160000 --- a/.config/ai/scpt +++ b/.config/ai/scpt @@ -1 +1 @@ -Subproject commit f1f1f67b612d758fe3beef7610c05b2a309ae96f +Subproject commit dc082b2001fb5f824ab18f62da56090471e777d0 diff --git a/.gitignore b/.gitignore index d414aff..d122b4a 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,8 @@ scpt/json/ .ssh/*.pub .ssh/*config .env + +pnpm-lock.yaml +**Cargo.lock +*/target/ +*/**/*.rs.bk diff --git a/docs/wiki.md b/docs/wiki.md index cd2152b..be06d8d 100644 --- a/docs/wiki.md +++ b/docs/wiki.md @@ -50,3 +50,10 @@ services: - ./.config:/root/.config command: ai bot -a syui.syu.is ``` + +### openapi + +```sh +# https://github.com/rdmurphy/atproto-openapi-types +$ curl -sLO https://raw.githubusercontent.com/rdmurphy/atproto-openapi-types/main/spec/api.json +``` diff --git a/src/bot.rs b/src/bot.rs index c4c943a..9d2087b 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -81,8 +81,8 @@ pub fn c_bot(c: &Context) { println!("{}", read); println!("{}", handle); println!( - "cid:{}\nuri:{}\ncid_root:{}\nuri_root:{}", - cid, uri, cid_root, uri_root + "cid:{}\nuri:{}\ncid_root:{}\nuri_root:{}\nhost:{}", + cid, uri, cid_root, uri_root, host ); println!("reason:{}\ncom:{}\nprompt:{}", reason, com, prompt); println!("prompt_sub:{}", prompt_sub);