miscChat works, meme schedule doesn't

This commit is contained in:
adam 2023-09-04 10:54:29 -04:00
parent a0b2721444
commit 4f54aa644e
2 changed files with 21 additions and 0 deletions

13
bash/meme schedule.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
for f in ./*
do
filename=$(basename -- "$f")
extension="${filename##*.}"
filename="${filename%.*}"
if [ "$filename" == "$(date '+%Y-%m-%d')" ]; then
#echo $f
curl -H "Content-Type: multipart/form-data" -F "file=@$f" #webhook url
fi
done

8
bash/miscChat.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
#msg="\"{\\\"content\\\":\\\"$@\\\"}\""
msg="{\"content\":\"$@\"}"
echo $msg
curl -H "Content-Type: application/json" -d "$msg" \
#WEBHOOK URL