This commit is contained in:
2023-10-20 23:31:16 +09:00
parent 430b5977d8
commit b8211ca354
88 changed files with 9912 additions and 1 deletions

18
test/token.zsh Executable file
View File

@ -0,0 +1,18 @@
function token() {
mkdir -p ~/.config/ai
echo server:
read host
echo password:
read pass
echo handle:
read handle
echo "{ \"host\":\"$host\", \"password\":\"$pass\", \"handle\":\"$handle\" }" >> $cfg
url=https://$host/xrpc/com.atproto.server.createSession
j=`curl -sL -X POST -H "Content-Type: application/json" -d "{\"identifier\":\"$handle\",\"password\":\"$pass\"}" $url`
echo $j
echo $j >! $cfg.t
}