various improvements
This commit is contained in:
parent
d5272262da
commit
1a6953900c
14 changed files with 71 additions and 49 deletions
|
@ -10,6 +10,7 @@ import (
|
|||
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
//TODO logging
|
||||
|
||||
func Reminder(update tgbotapi.Update, bot *tgbotapi.BotAPI) {
|
||||
log.Debug().Str("args", update.Message.CommandArguments()).Msg("parsing new reminder")
|
||||
|
|
|
@ -9,7 +9,8 @@ var notifySetReminder *sql.Stmt
|
|||
var notifyGetReminders *sql.Stmt
|
||||
var notifyGetReminderDetails *sql.Stmt
|
||||
var notifyDeleteReminder *sql.Stmt
|
||||
|
||||
//TODO logging
|
||||
//TODO switch to SQL
|
||||
func InitDB() {
|
||||
const dbPath string = "./bloater.db"
|
||||
log.Info().Str("dbpath", dbPath).Msg("init database")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue