Пример #1
0
 private async Task ProcessAre(string text)
 {
     try
     {
         text = text.Trim();
         string response = string.Empty;
         if (this.IsQuestion(text))
         {
             response = RNG.FromList(this._responseList);
         }
         else if (this.IsSentence(text))
         {
             response = RNG.FromList(this._noQuestionList);
         }
         else
         {
             response = RNG.FromList(this._noSentenceList);
         }
         await this.ReplyAsync(response);
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
     }
 }