add feed watch
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
This commit is contained in:
@ -16,6 +16,7 @@ source $d/reply.zsh
|
||||
source $d/notify.zsh
|
||||
source $d/notify_cid.zsh
|
||||
source $d/cron.zsh
|
||||
source $d/feed.zsh
|
||||
|
||||
case $1 in
|
||||
refresh|r)
|
||||
@ -36,4 +37,7 @@ case $1 in
|
||||
cid)
|
||||
cid
|
||||
;;
|
||||
feed)
|
||||
feed
|
||||
;;
|
||||
esac
|
||||
|
5
test/feed.zsh
Normal file
5
test/feed.zsh
Normal file
@ -0,0 +1,5 @@
|
||||
function feed(){
|
||||
token=`cat ~/.config/ai/token.json|jq -r .accessJwt`
|
||||
url=at://did:plc:4hqjfn7m6n5hno3doamuhgef/app.bsky.feed.generator/cmd
|
||||
curl -sL "https://public.api.bsky.app/xrpc/app.bsky.feed.getFeed?feed=$url" -H "Authorization: Bearer $token"
|
||||
}
|
Reference in New Issue
Block a user