示例#1
0
        public static bool ConfigWrite()
        {
            bool    status = false;
            IniData data   = null;

            data["Profile"]["UserName"] = Instance.ConfUserName;
            data["Profile"]["Website"]  = Instance.ConfWebsite;

            data["Configuration"]["Language"] = Instance.ConfLanguage;

            data["Configuration"]["DiscordUser"] = Instance.ConfDiscordSDK.ToString();
            data["Configuration"]["DiscordBot"]  = Instance.ConfDiscordBot.ToString();
            data["Configuration"]["TwitchUser"]  = Instance.ConfTwitchSDK.ToString();
            data["Configuration"]["TwitchBot"]   = Instance.ConfTwitchBot.ToString();

            data["Configuration"]["ComputerRank"] = Instance.ConfComputerRank.ToString();

            data["Configuration"]["UserBlackListString"] = HEVText.ToString(Instance.UserBlackList.ToArray()).ToString();
            data["Configuration"]["BotBlackListString"]  = HEVText.ToString(Instance.BotBlackList.ToArray()).ToString();

            data["Configuration"]["RPGGame"] = Instance.ConfRPGGame.ToString();


            status = HEVIO.FileINIWrite(Instance.FileConfig, data);
            return(status);
        }
示例#2
0
        public static bool ConfigWrite()
        {
            bool    status = false;
            IniData data   = null;

            data["Discord"]["Guild"]         = Instance.DiscordGuild;
            data["Discord"]["Channel"]       = Instance.DiscordChannel;
            data["Discord"]["UserName"]      = Instance.DiscordUserName;
            data["Discord"]["BotName"]       = Instance.DiscordBotName;
            data["Discord"]["BotToken"]      = Instance.DiscordBotToken;
            data["Discord"]["UserBlackList"] = HEVText.ToString(Instance.DiscordUserBlackList);
            data["Discord"]["BotBlackList"]  = HEVText.ToString(Instance.DiscordBotBlackList);

            status = HEVIO.FileINIWrite(Instance.FileConfig, data);
            return(status);
        }