Show the votd for three Bible translations. This uses the BibleGateway api which returns a json file.
#!/usr/bin/env nu
# PR 2026-01-31 02:41:13
# help from Gemini
# Get the Verse of the Day from BibleGateway
# this uses the NKVJ version of the Bibble
def votd [] {
let versions = ["KJV" "NKJV" "NIV"]
$versions
| each {|ver|
http get $"https://www.biblegateway.com/votd/get/?format=json&version=($ver)"
| get votd
| [
$"(ansi yellow)✝️ Verse of the Day ✝️ (ansi reset)"
$"(ansi yellow)($in.year)/($in.month)/($in.day)(ansi reset)"
$"(ansi light_green)($in.version) - ($in.version_id)(ansi reset)"
$"($in.display_ref)"
$"($in.text)"
]
}
| flatten
| str replace --all '“' '“'
| str replace --all '”' '”'
| str replace --all '“' '“'
| str replace --all '”' '”'
| str replace --all '–' '–'
| str replace --all '—' '—'
| str replace --all '‘' "'"
| str replace --all '’' "'"
| each {|line|
$line | fill --alignment c --width ((term size).columns - 10)
}
| str join "\n"
} ✝️ Verse of the Day ✝️
2026/02/11
King James Version - KJV
1 Corinthians 13:4-5
“Charity suffereth long, and is kind; charity envieth not; charity vaunteth not itself, is not puffed up, Doth not behave
itself unseemly, seeketh not her own, is not easily provoked, thinketh no evil;”
✝️ Verse of the Day ✝️
2026/02/11
New King James Version - NKJV
1 Corinthians 13:4-5
“Love suffers long and is kind; love does not envy; love does not parade itself, is not puffed up; does not behave rudely,
does not seek its own, is not provoked, thinks no evil;”
✝️ Verse of the Day ✝️
New International Version - NIV
1 Corinthians 13:4-5
“Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is
not self-seeking, it is not easily angered, it keeps no record of wrongs.”