summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-08-08 13:33:07 +0300
committerGrail Finder <wohilas@gmail.com>2025-08-08 13:33:07 +0300
commit3b7784e0a44e7f8ca5c14db590ebdfe1736e87e5 (patch)
tree6127376793b714812fa4a98d0e5ea9d839b8d9de /bot.go
parent972d9cdbffad19efbf2bb05f2f91e31d09120e32 (diff)
Chore: db path to config
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go3
1 files changed, 1 insertions, 2 deletions
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)
}