From 3b7784e0a44e7f8ca5c14db590ebdfe1736e87e5 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Fri, 8 Aug 2025 13:33:07 +0300 Subject: Chore: db path to config --- bot.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bot.go') diff --git a/bot.go b/bot.go index cc540c7..776a373 100644 --- a/bot.go +++ b/bot.go @@ -551,8 +551,7 @@ func init() { // logLevel.Set(slog.LevelInfo) logger = slog.New(slog.NewTextHandler(logfile, &slog.HandlerOptions{Level: logLevel})) - // TODO: rename and/or put in cfg - store = storage.NewProviderSQL("test.db", logger) + store = storage.NewProviderSQL(cfg.DBPATH, logger) if store == nil { os.Exit(1) } -- cgit v1.2.3