public QQService() { this.logger = new QQBotLogger(nameof(QQService)); this.botName = IniParse.INIGetValue(SharedInfo.ConfigFile, "GlobalConfig", "BotName"); this.botType = (BotType)IniParse.INIGetValue(SharedInfo.ConfigFile, "BotTypes", IniParse.INIGetValue(SharedInfo.ConfigFile, "GlobalConfig", "BotType")); this.workGroups = new List <string>(IniParse.INIGetValue(SharedInfo.ConfigFile, "GlobalConfig", "WorkGroup").Split(',')); }
public RepeatService() : base(nameof(RepeatService)) { this.probability = Int32.Parse(IniParse.INIGetValue(SharedInfo.ConfigFile, "Repeat", "Probability")); }
public TuringService() : base(nameof(TuringService)) { this.turingApi = IniParse.INIGetValue(SharedInfo.ConfigFile, "Turing", "Api"); this.turingKey = IniParse.INIGetValue(SharedInfo.ConfigFile, "Turing", "Key"); this.botName = IniParse.INIGetValue(SharedInfo.ConfigFile, "GlobalConfig", "BotName"); }