Beispiel #1
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Initializing the Bot...");

            var botConfiguration = SetUpConfig.InitializeConfiguration();
            var container        = SetUpBot.NewBotDepedencyContainer(botConfiguration);

            WaitForCommands(container);
        }
Beispiel #2
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Initializing the Bot...");

            (string connectionString, TwitchClientSettings clientSettings) = SetUpConfig.InitializeConfiguration();

            BotMain botMain = SetUpBot.NewBot(clientSettings, connectionString);

            WaitForCommands(botMain);
        }
Beispiel #3
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Initializing the Bot...");
            TwitchClientSettings clientSettings = SetUpConfig.InitializeConfiguration();

            DbContextOptions <AppDataContext> options = new DbContextOptionsBuilder <AppDataContext>()
                                                        .UseInMemoryDatabase("fake-data-db")
                                                        .Options;

            var efGenericRepo = new EfGenericRepo(new AppDataContext(options));

            new FakeData(efGenericRepo).Initialize();

            Console.WriteLine("To exit, press [Ctrl]+c");

            BotMain botMain = SetUpBot.NewBot(clientSettings, efGenericRepo);

            botMain.Run();
        }