refactoring, fixes and laniakea v0.8

This commit is contained in:
2026-02-19 14:02:25 +03:00
parent 0804398b6c
commit c9a5a81643
30 changed files with 219 additions and 190 deletions

View File

@@ -5,11 +5,11 @@ import (
"database/sql"
"errors"
"fmt"
"kurumibot/database/psql"
"kurumibot/utils"
"strings"
"ymgb/database"
"ymgb/database/psql"
"ymgb/utils"
"git.nix13.pw/scuroneko/laniakea"
"github.com/google/uuid"
"github.com/redis/go-redis/v9"
)
@@ -18,7 +18,7 @@ var ctx = context.Background()
type RPRepository struct {
client *redis.Client
db *laniakea.DatabaseContext
db *database.Context
}
type RPChat struct {
@@ -35,7 +35,7 @@ type RPChat struct {
Scenarios []psql.RPScenario
}
func NewRPRepository(db *laniakea.DatabaseContext) RPRepository {
func NewRPRepository(db *database.Context) RPRepository {
return RPRepository{db.Redis, db}
}