Merge remote-tracking branch 'refs/remotes/origin/master'

This commit is contained in:
Benjamin A. Shelton 2026-09-12 08:57:10 -06:00
commit 5f4bae1cd6
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
3 changed files with 30 additions and 30 deletions

View file

@ -131,7 +131,7 @@ func (b *Bot) SendScripture() {
b.Bot.SendRichMessage(b.context,
&telego.SendRichMessageParams{
ChatID: tu.ID(c),
RichMessage: tu.RichMessageMarkdown(fmt.Sprintf("**%s**\n\n%s (*%s*)", v.Verse, v.Content, v.Translation)),
RichMessage: tu.RichMessageMarkdown(fmt.Sprintf("**<u>Daily Scripture:</u><br>%s**\n\n%s (*%s*)", v.Verse, v.Content, v.Translation)),
})
//b.Bot.SendMessage(b.context, tu.Message(tu.ID(c), fmt.Sprintf("*%s*\n\n%s (%s)", v.Verse, v.Content, v.Translation)))
}

View file

@ -32,19 +32,14 @@ type ScriptureStore struct {
}
func (s *ScriptureStore) GetVerse() *Scripture {
if s.Offset < len(s.Verses) {
s.Offset++
return s.Verses[s.Offset]
}
if len(s.Verses) == 1 {
s.Offset = 1
return s.Verses[0]
}
return &Scripture{
Verse: "3 John 11",
Translation: "BSB",
Content: "Beloved, do not imitate what is evil, but what is good. The one who does good is of God; the one who does evil has not seen God.",
}
defer func() {
if s.Offset+1 < len(s.Verses) {
s.Offset++
} else {
s.Offset = 0
}
}()
return s.Verses[s.Offset]
}
func OpenStore(name string) (*ScriptureStore, error) {

View file

@ -5,51 +5,56 @@
"translation": "BSB",
"content": "In the beginning, God created the heavens and the earth."
},
{
"verse": "Psalm 62:1",
"translation": "BSB",
"content": "In God alone my soul finds rest; my salvation comes from Him."
},
{
"verse": "John 6:36",
"translation": "BSB",
"content": "Jesus answered, \"I am the bread of life. Whoever comes to Me will never hunger, and whoever believes in Me will never thirst.\""
},
{
"verse": "Revelation 21:4",
"verse": "Psalm 62:1",
"translation": "BSB",
"content": "'He will wipe away every tear from their eyes,' and there will be no more death or mourning or crying or pain, for the former things have passed away."
},
{
"verse": "1 Corinthians 15:54",
"translation": "BSB",
"content": "When the perishable has been clothed with the imperishable and the mortal with immortality, then the saying that is written will come to pass: \"Death has been swallowed up in victory.\""
},
{
"verse": "Job 42:2",
"translation": "BSB",
"content": "I know that You can do all things and that no plan of Yours can be thwarted."
},
{
"verse": "Psalm 45:6",
"translation": "BSB",
"content": "Your throne, O God, endures forever and ever, and justice is the scepter of Your kingdom."
"content": "In God alone my soul finds rest; my salvation comes from Him."
},
{
"verse": "Romans 12:12",
"translation": "BSB",
"content": "Be joyful in hope, patient in affliction, persistent in prayer."
},
{
"verse": "Psalm 45:6",
"translation": "BSB",
"content": "Your throne, O God, endures forever and ever, and justice is the scepter of Your kingdom."
},
{
"verse": "Revelation 21:4",
"translation": "BSB",
"content": "'He will wipe away every tear from their eyes,' and there will be no more death or mourning or crying or pain, for the former things have passed away."
},
{
"verse": "James 1:17",
"translation": "BSB",
"content": "Every good and perfect gift is from above, coming down from the Father of the heavenly lights, with whom there is no change or shifting shadow."
},
{
"verse": "Job 42:2",
"translation": "BSB",
"content": "I know that You can do all things and that no plan of Yours can be thwarted."
},
{
"verse": "Psalm 33:6",
"translation": "BSB",
"content": "By the word of the LORD the heavens were made, and all the stars by the breath of His mouth."
},
{
"verse": "1 Corinthians 15:54",
"translation": "BSB",
"content": "When the perishable has been clothed with the imperishable and the mortal with immortality, then the saying that is written will come to pass: \"Death has been swallowed up in victory.\""
},
{
"verse": "3 John 11",
"translation": "BSB",
"content": "Beloved, do not imitate what is evil, but what is good. The one who does good is of God; the one who does evil has not seen God."
}
],
"offset": 1
"offset": 2
}