Skip to content

edememinov/PressToBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PressToBot

Just press to bot

Usage

Edit PressToBot.cs in Bots folder.

else if (turnContext.Activity.Text.ToLower().Contains("CONTAINS SOMETHING") || turnContext.Activity.Text.Split()[1].Equals("SECOND WORD EQUALS TO THIS"))
            {
                //Create Attachement
                var attachments = new List<Attachment>();
                //Create Reply
                var reply = MessageFactory.Attachment(attachments);
                // Add Hero Card (found in Card.cs) to the reply
                reply.Attachments.Add(SomeCardImage.GetHeroCard().ToAttachment());
                //Send reply to user
                await turnContext.SendActivityAsync(reply, cancellationToken);
            }

About

Just press to bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published