diff --git a/.config/ai/scpt/diffusers_img.zsh b/.config/ai/scpt/diffusers_img.zsh index 6b2ad23..4e1939d 100755 --- a/.config/ai/scpt/diffusers_img.zsh +++ b/.config/ai/scpt/diffusers_img.zsh @@ -7,4 +7,9 @@ cid=$1 uri=$2 link=`ai img-upload $f|jq -r .blob.ref.'"$link"'` -ai img-post "#stablediffusion" -l $link -c $cid -u $uri + +if [ -f $f ];then + ai img-post "#stablediffusion" -l $link -c $cid -u $uri +else + ai reply "1 day limit" -c $cid -u $uri +fi