Skip to content

RyanDawkins/botframework-typist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typist Middleware

Travis Build Status NuGet Version and Downloads count

About

This piece of middleware is to simulate that a real person is typing between messages that are sent from the bot to the user. This is done by sending a typing indicator between messages. The delay is determined by the number of words in the MessageActivity.Text field and the words per minute configured from the middlewares constructor.

The purpose of this middleware is to give a more realistic feel to the bot as it simulates a person. Another reason is to prevent the user from having to scroll up to read a number of messages that may have came in from the bot all at once.

Installing

Install-Package RyanDawkins.Typist –IncludePrerelease

Usage

int wordsPerMinute = 120;
bot.Use(new TypistMiddleware(wordsPerMinute));

See the Sample for more details on how to add this to your project.

About

Typist Middleware for the Bot Framework v4.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages