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=""
|
message=""
|
||||||
# Embed color (e.g. 45973)
|
# Embed color (e.g. 45973)
|
||||||
embed_color=""
|
embed_color=""
|
||||||
|
# latestalbum path (for cron job, e.g. /home/amolinae/.local/bin/latestalbum)
|
||||||
|
lapath=""
|
||||||
|
|
||||||
generate_post_data() {
|
generate_post_data() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
@ -24,7 +26,7 @@ generate_post_data() {
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
data="$(latestalbum)"
|
data="$($lapath)"
|
||||||
|
|
||||||
if [ -z "$data" ]; then
|
if [ -z "$data" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue