miscChat works, meme schedule doesn't
This commit is contained in:
parent
a0b2721444
commit
4f54aa644e
13
bash/meme schedule.sh
Normal file
13
bash/meme schedule.sh
Normal 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
8
bash/miscChat.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
#msg="\"{\\\"content\\\":\\\"$@\\\"}\""
|
||||
msg="{\"content\":\"$@\"}"
|
||||
echo $msg
|
||||
|
||||
curl -H "Content-Type: application/json" -d "$msg" \
|
||||
#WEBHOOK URL
|
Loading…
Reference in New Issue
Block a user