v0.1
This commit is contained in:
.config
.gitignore.gitmodulesCargo.tomlDockerfileMakefile.tomlREADME.mdcompose.ymldocs
icon
k8s
src
ascii.rsbot.rsdata.rsdescribe.rsfollow.rsfollowers.rsfollows.rsimg.rsimg_reply.rsimg_upload.rslike.rsmain.rsmention.rsnotify.rsnotify_read.rsopenai.rspost.rspost_link.rsprofile.rsrefresh.rsreply.rsreply_link.rsreply_og.rsrepost.rssession.rstimeline_author.rstoken.rs
test
18
test/token.zsh
Executable file
18
test/token.zsh
Executable 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
|
||||
}
|
Reference in New Issue
Block a user