Cleanup.
This commit is contained in:
parent
5a40168769
commit
3f91c9f3bf
1 changed files with 0 additions and 41 deletions
|
|
@ -115,47 +115,6 @@ func (b *bot) SendMarkdownMessage(chatid int64, message string) error {
|
||||||
RichMessage: tu.RichMessageMarkdown(message),
|
RichMessage: tu.RichMessageMarkdown(message),
|
||||||
})
|
})
|
||||||
return err
|
return err
|
||||||
/*script, err := bible.OpenStore("scripture.json")
|
|
||||||
if err != nil {
|
|
||||||
fmt.Println(err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
v := script.GetVerse()
|
|
||||||
err = bible.SaveStore("scripture.json", script)
|
|
||||||
if err != nil {
|
|
||||||
fmt.Println(err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
for _, c := range b.Settings.Chat.Channels {
|
|
||||||
b.Bot.SendRichMessage(b.context,
|
|
||||||
&telego.SendRichMessageParams{
|
|
||||||
ChatID: tu.ID(c),
|
|
||||||
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)))
|
|
||||||
}*/
|
|
||||||
}
|
|
||||||
|
|
||||||
func (b *bot) SendScripture() {
|
|
||||||
/*script, err := bible.OpenStore("scripture.json")
|
|
||||||
if err != nil {
|
|
||||||
fmt.Println(err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
v := script.GetVerse()
|
|
||||||
err = bible.SaveStore("scripture.json", script)
|
|
||||||
if err != nil {
|
|
||||||
fmt.Println(err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
for _, c := range b.Settings.Chat.Channels {
|
|
||||||
b.Bot.SendRichMessage(b.context,
|
|
||||||
&telego.SendRichMessageParams{
|
|
||||||
ChatID: tu.ID(c),
|
|
||||||
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)))
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *bot) SetCommands(ctx context.Context) (err error) {
|
func (b *bot) SetCommands(ctx context.Context) (err error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue