示例#1
0
        // SET-UP

        private static void SetUp()
        {
            switch (Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"))
            {
            case "Development":
                Development = true;
                Pause       = true;
                break;

            default:
                Console.WriteLine("Entry: " + Assembly.GetEntryAssembly().Location);
                _ = ImgurAPI.ImgurSetup();
                break;
            }
            NamikoDbContext.ConnectionString = AppSettings.ConnectionString;
            _        = LootboxStats.Reload(Locations.LootboxStatsJSON);
            Prefixes = ServerDb.GetPrefixes();
            Images.ReactionImageCommands = ImageDb.GetReactionImageCommandHashSet();
            Blacklist  = BlacklistDb.GetAll();
            Waifu.Path = AppSettings.ImageUrlPath + "waifus/";
        }