Beispiel #1
0
        private async Task MessageReceivedAsync(IDialogContext context, IAwaitable <object> result)
        {
            var activity = await result as Activity;
            await context.PostAsync(QuotesHelper.GetQuote(activity?.Text));

            context.Wait(MessageReceivedAsync);
        }
Beispiel #2
0
 public async Task ImgurImageAsync()
 {
     try
     {
         await MessageHelper.Info(Context, "Quote", QuotesHelper.OpinionatedQuotes());
     }
     catch (Exception e)
     {
         await MessageHelper.Failure(Context, "Failure", e.Message);
     }
 }