Skip to content

Instantly share code, notes, and snippets.

@paul-d-ray
Created February 12, 2026 04:57
Show Gist options
  • Select an option

  • Save paul-d-ray/16f99b6b8c9858004da6d27ef451e788 to your computer and use it in GitHub Desktop.

Select an option

Save paul-d-ray/16f99b6b8c9858004da6d27ef451e788 to your computer and use it in GitHub Desktop.
Nushell VOTD (Verse of the Day)

Show the Verse of the Day

Show the votd for three Bible translations. This uses the BibleGateway api which returns a json file.

Nushell code

#!/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"

}

Output

                                      ✝️  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.”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment