Esempio n. 1
0
        /// <summary>
        /// /!\ WARNING /!\ NEVER USE UNLESS FILE CREATION
        /// </summary>
        public void ResetDefault()
        {
            CFormat.Print("Mise en place des paramètres par défaut.", "Config", DateTime.Now, ConsoleColor.Yellow);


            BotToken = (string)CInput.ReadFromConsole("BotToken=", ConsoleInputType.String, false, ConsoleColor.White);

            XanaId = (ulong)CInput.ReadFromConsole("XanaId=", ConsoleInputType.Ulong, false, ConsoleColor.White, 18);


            GuildConfigs = new Dictionary <ulong, GuildConfig>();

            TresorProbabilities = new Dictionary <int, int>()
            {
                { 1, 18 }, { 2, 16 }, { 3, 15 }, { 4, 13 }, { 5, 11 }, { 6, 9 }, { 7, 7 }, { 8, 5 }, { 9, 4 }, { 10, 2 }
            };

            XanaOAuth2URL = "";


            CFormat.Print("Paramètres appliqués.", "Config", DateTime.Now, ConsoleColor.Yellow);
        }