discord will now use title over distinct name, when given both.

This commit is contained in:
2023-11-13 17:36:44 -05:00
parent e7c751826d
commit b24e445b5a
2 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -27,9 +27,11 @@ for index in "${!STORAGE_ALERT[@]}"; do
fi
done
title="Storage Update"
if [[ "$warn" = true ]]; then
purple="purple"
title="Storage Alert"
fi
printf "%s\n" "${messages[@]}"
printf "%s\n" "${messages[@]}" | "$scriptRoot/discord.sh" -c "${purple-blue}" -d "Storage Alert"
printf "%s\n" "${messages[@]}" | "$scriptRoot/discord.sh" -c "${purple-blue}" -d "Storage Alert" -t "$title"