diff --git a/bash/meme schedule.sh b/bash/meme schedule.sh new file mode 100644 index 0000000..1fe1ede --- /dev/null +++ b/bash/meme schedule.sh @@ -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 \ No newline at end of file diff --git a/bash/miscChat.sh b/bash/miscChat.sh new file mode 100755 index 0000000..74800ed --- /dev/null +++ b/bash/miscChat.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +#msg="\"{\\\"content\\\":\\\"$@\\\"}\"" +msg="{\"content\":\"$@\"}" +echo $msg + +curl -H "Content-Type: application/json" -d "$msg" \ + #WEBHOOK URL \ No newline at end of file