Renamed the bot from KickBot -> ChatBot and removed the reference to Kick in the project name

This commit is contained in:
barelyprofessional
2024-07-26 16:50:39 +08:00
parent f4db00246a
commit f9d87220d2
46 changed files with 84 additions and 84 deletions

View File

@@ -0,0 +1,25 @@
using System.Text;
using KfChatDotNetBot.Settings;
using Microsoft.EntityFrameworkCore;
using NLog;
namespace KfChatDotNetBot
{
public class Program
{
static void Main(string[] args)
{
var logger = LogManager.GetCurrentClassLogger();
logger.Info("Opening up DB to perform a migration (if one is needed)");
using var db = new ApplicationDbContext();
db.Database.Migrate();
logger.Info("Migration done. Syncing bultin settings keys");
BuiltIn.SyncSettingsWithDb().Wait();
logger.Info("Migrating settings from config.json (if needed)");
BuiltIn.MigrateJsonSettingsToDb().Wait();
logger.Info("Handing over to bot now");
Console.OutputEncoding = Encoding.UTF8;
new ChatBot();
}
}
}