Пример #1
0
 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(','));
 }
Пример #2
0
 public RepeatService() : base(nameof(RepeatService))
 {
     this.probability = Int32.Parse(IniParse.INIGetValue(SharedInfo.ConfigFile, "Repeat", "Probability"));
 }
Пример #3
0
 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");
 }