# Leave (or place) this file in the "notify_templates" subdirectory within the same directory as the main dockcheck.sh script.
# If you instead wish make your own modifications, make a copy in the same directory as the main dockcheck.sh script.
# Do not modify this file directly within the "notify_templates" subdirectory. Set SLACK_ACCESS_TOKEN, and SLACK_CHANNEL_ID in your dockcheck.config file.
printf"The ${slack_channel} notification channel is enabled, but required configuration variables are missing. Slack notifications will not be sent.\n"
remove_channel slack
return0
fi
AccessToken="${!AccessTokenVar}"# e.g. SLACK_ACCESS_TOKEN=some-token
ChannelID="${!ChannelIDVar}"# e.g. CHANNEL_ID=mychannel