cron support

This commit is contained in:
λmolinae 2025-05-03 14:20:59 -06:00
parent 4f61cd353c
commit 41a075218c

View file

@ -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