- Credentials are now loading from creds.yml

- Removed/commented out obsolete credentials code
- Added missing properties to creds.yml
- Updated README.md with some tasks and progress
This commit is contained in:
Kwoth
2021-06-23 18:11:52 +02:00
parent 78d077ce71
commit 16dd398aa0
12 changed files with 254 additions and 290 deletions

View File

@@ -4,7 +4,7 @@ using NadekoBot.Services.Database;
using System;
using System.IO;
using System.Linq;
using NadekoBot.Db;
using LinqToDB.EntityFrameworkCore;
namespace NadekoBot.Services
{
@@ -15,6 +15,8 @@ namespace NadekoBot.Services
public DbService(IBotCredentials creds)
{
LinqToDBForEFTools.Initialize();
var builder = new SqliteConnectionStringBuilder(creds.Db.ConnectionString);
builder.DataSource = Path.Combine(AppContext.BaseDirectory, builder.DataSource);