Did a massive overhaul of settings where it now uses an attribute and reflection to populate the DB. Gets rid of the enormous array and makes it a one-step process to create settings.

This commit is contained in:
barelyprofessional
2025-10-18 03:45:23 -05:00
parent c04763079a
commit e770136ca9
2 changed files with 244 additions and 1038 deletions

View File

@@ -38,8 +38,6 @@ namespace KfChatDotNetBot
await BuiltIn.SyncSettingsWithDb();
logger.Info("Migrating settings from config.json (if needed)");
await BuiltIn.MigrateJsonSettingsToDb();
logger.Info("Migrating streams from settings API to their own table");
await BuiltIn.MigrateStreamChannelsToDatabase();
logger.Info("Handing over to bot now");
Console.OutputEncoding = Encoding.UTF8;
new ChatBot();

File diff suppressed because it is too large Load Diff