Placeholder.

This commit is contained in:
Benjamin A. Shelton 2026-10-14 23:57:56 -06:00
commit bd1467ed21
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -125,3 +125,19 @@ func (m *verse) ListVerses(ctx context.Context, cmd *cli.Command) error {
return nil
}
func (m *verse) RandomVerse(ctx context.Context, cmd *cli.Command) error {
simulate := cmd.Bool("simulate")
chatid := cmd.Int64("chatid")
logger := logging.Get("commands")
logger.SetFormat("verse add: {{message}}")
mdb := models.OpenDatabase(m.settings)
if err := mdb.Open(); err != nil {
logger.Error("connection error:", errors.Unfurl(err))
return err
}
mdl := models.NewVerseModel(ctx, mdb.DB())
return nil
}