2023-10-20 14:31:16 +00:00
|
|
|
#!/bin/zsh
|
|
|
|
|
|
|
|
# https://www.docs.bsky.app/docs/get-started
|
|
|
|
|
|
|
|
case $OSTYPE in
|
|
|
|
darwin*)
|
|
|
|
alias date="/opt/homebrew/bin/gdate"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
d=${0:a:h}
|
|
|
|
|
|
|
|
source $d/env
|
|
|
|
source $d/refresh.zsh
|
|
|
|
source $d/token.zsh
|
|
|
|
source $d/reply.zsh
|
|
|
|
source $d/notify.zsh
|
2024-02-24 12:46:59 +00:00
|
|
|
source $d/notify_cid.zsh
|
2023-10-20 14:31:16 +00:00
|
|
|
source $d/cron.zsh
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
refresh|r)
|
|
|
|
refresh
|
|
|
|
;;
|
|
|
|
token|t)
|
|
|
|
token
|
|
|
|
;;
|
|
|
|
reply|rep)
|
|
|
|
reply
|
|
|
|
;;
|
|
|
|
notify|n)
|
|
|
|
notify
|
|
|
|
;;
|
|
|
|
cron|c)
|
|
|
|
cron
|
|
|
|
;;
|
2024-02-24 12:46:59 +00:00
|
|
|
cid)
|
|
|
|
cid
|
|
|
|
;;
|
2023-10-20 14:31:16 +00:00
|
|
|
esac
|