This commit is contained in:
2025-11-15 22:14:42 +01:00
parent 710b5508ac
commit cc76df8e45

13
scripts/votd Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
# Make the curl request and store the JSON response in a variable
response=$(curl -s --request GET \
--url 'https://beta.ourmanna.com/api/v1/get?format=json&order=daily' \
--header 'accept: application/json')
# Use jq to parse the JSON and extract the required fields
text=$(echo "$response" | jq -r '.verse.details.text')
reference=$(echo "$response" | jq -r '.verse.details.reference')
version=$(echo "$response" | jq -r '.verse.details.version')
echo "\"$text\" - $reference ($version)"