cron support
This commit is contained in:
parent
4f61cd353c
commit
41a075218c
1 changed files with 3 additions and 1 deletions
4
webhook
4
webhook
|
@ -7,6 +7,8 @@ discord_url=""
|
|||
message=""
|
||||
# Embed color (e.g. 45973)
|
||||
embed_color=""
|
||||
# latestalbum path (for cron job, e.g. /home/amolinae/.local/bin/latestalbum)
|
||||
lapath=""
|
||||
|
||||
generate_post_data() {
|
||||
cat <<EOF
|
||||
|
@ -24,7 +26,7 @@ generate_post_data() {
|
|||
EOF
|
||||
}
|
||||
|
||||
data="$(latestalbum)"
|
||||
data="$($lapath)"
|
||||
|
||||
if [ -z "$data" ]; then
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue