# 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 MATRIX_ACCESS_TOKEN, MATRIX_ROOM_ID, and MATRIX_SERVER_URL in your dockcheck.config file.
printf"The ${matrix_channel} notification channel is enabled, but required configuration variables are missing. Matrix notifications will not be sent.\n"
remove_channel matrix
return0
fi
AccessToken="${!AccessTokenVar}"# e.g. MATRIX_ACCESS_TOKEN=token-value
RoomId="${!RoomIdVar}"# e.g. MATRIX_ROOM_ID=myroom
MatrixServer="${!MatrixServerVar}"# e.g. MATRIX_SERVER_URL=http://matrix.yourdomain.tld