Exemplo n.º 1
0
 public async Task <RuntimeResult> Yes()
 {
     if (CompanionConvo.LastReply.Contains("Saria"))
     {
         CompanionConvo.LastReply = Constants.SariaReply;
         await ReplyAsync(CompanionConvo.LastReply);
     }
     else if (CompanionConvo.LastReply.Contains("instead"))
     {
         CompanionConvo.LastReply = Constants.NaviPlay3;
         await ReplyAsync(CompanionConvo.LastReply);
     }
     return(StateResponse.FromSuccess(CompanionConvo));
 }
Exemplo n.º 2
0
        public async Task <RuntimeResult> Talk()
        {
            var index  = (int)CompanionConvo.Companion;
            var quotes = CompanionQuotes[index];

            //var num = new Random().Next(0, quotes.Value.Length);
            CompanionConvo.LastReply = quotes.Value[CompanionConvo.TalkIndex[index]];
            await ReplyAsync(CompanionConvo.LastReply);

            CompanionConvo.TalkIndex[index] = CompanionConvo.TalkIndex[index] == 4
        ? 0
        : CompanionConvo.TalkIndex[index] + 1;
            return(StateResponse.FromSuccess(CompanionConvo));
        }