Skip to content

Added MarkovChainMessageProvider and RedisSinceIdProvider

Compare
Choose a tag to compare
@jessamynsmith jessamynsmith released this 23 Apr 20:14
· 20 commits to master since this release

Major features in this release

  • New built-in message provider, MarkovChainMessageProvider, which creates random messages based on provided text.
  • New built-in since_id provider, RedisSinceIdProvider, which stores the since_id in redis

There has also been several API changes:

  • There are now base classes for message and since_id providers, BaseMessageProvider and BaseSinceIdProvider
  • A new parameter, max_message_length, is required on the MessageProvider create method: def create(self, mention, max_message_length)