From 4a514e35a59e6b612eb9ae12dc05ffd2026fa6e6 Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 20 Feb 2024 16:42:37 +0900 Subject: [PATCH] fix scpt --- .config/ai/scpt/diffusers_img.zsh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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