fix reply-og
This commit is contained in:
parent
4f15017b13
commit
a6a1820fe6
@ -30,6 +30,9 @@ host_card_json=`curl -sL $host_card`
|
|||||||
n_cid=$HOME/.config/ai/txt/tmp_notify_cid.txt
|
n_cid=$HOME/.config/ai/txt/tmp_notify_cid.txt
|
||||||
f_cfg=$HOME/.config/ai/txt/tmp_ten_config.txt
|
f_cfg=$HOME/.config/ai/txt/tmp_ten_config.txt
|
||||||
|
|
||||||
|
host=`cat ~/.config/ai/token.toml|head -n 1 |cut -d '"' -f 2`
|
||||||
|
|
||||||
|
|
||||||
function moon_check(){
|
function moon_check(){
|
||||||
moon_now=`date +"%Y%m%d"`
|
moon_now=`date +"%Y%m%d"`
|
||||||
moon_j=$HOME/.config/ai/scpt/full_moon.j
|
moon_j=$HOME/.config/ai/scpt/full_moon.j
|
||||||
@ -822,7 +825,12 @@ function card_post() {
|
|||||||
|
|
||||||
link="https://card.syui.ai/${username}"
|
link="https://card.syui.ai/${username}"
|
||||||
text=`echo "$title +${cten}\n$body\nten : $ten_su\n$ten_kai : $old_ten_char ---> $ten_char $ten_yak_ok"`
|
text=`echo "$title +${cten}\n$body\nten : $ten_su\n$ten_kai : $old_ten_char ---> $ten_char $ten_yak_ok"`
|
||||||
|
|
||||||
|
if [ "$host" = "bsky.social" ];then
|
||||||
tmp_atr=`ai reply-og "$text" --cid $cid --uri $uri --img $img --title "$title" --description "$desc" --link $link`
|
tmp_atr=`ai reply-og "$text" --cid $cid --uri $uri --img $img --title "$title" --description "$desc" --link $link`
|
||||||
|
else
|
||||||
|
tmp_atr=`ai reply "$text" --cid $cid --uri $uri`
|
||||||
|
fi
|
||||||
ten_shutdown
|
ten_shutdown
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,6 +8,14 @@ did=$2
|
|||||||
cid=$3
|
cid=$3
|
||||||
uri=$4
|
uri=$4
|
||||||
|
|
||||||
|
host=`cat ~/.config/ai/token.toml|head -n 1 |cut -d '"' -f 2`
|
||||||
|
if [ "$host" != "bsky.social" ];then
|
||||||
|
uranai="今日の運勢をタロット占いでやってください。結果を120文字以内で教えてください"
|
||||||
|
body=`ai chat "$uranai"`
|
||||||
|
ai reply "$body" -c $cid -u $uri
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -d $HOME/.config/ai/txt ];then
|
if [ ! -d $HOME/.config/ai/txt ];then
|
||||||
mkdir -p $HOME/.config/ai/txt
|
mkdir -p $HOME/.config/ai/txt
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user