github tomaarsen/TwitchMarkovChain v2.0

latest releases: v2.4, v2.3, v2.2...
3 years ago

v2.0 update log:

  • Punctuation (commas, dots, apostrophes, etc.) are now split as a separate word in the database.
  • Added AllowedUsers field - gives developer (or whichever users are specified here) the permission to bypass the cooldown, or use the generate command even when the command is disabled.
  • Added WhisperCooldown field - whether the Bot whispers the cooldown message. Otherwise, do not send the cooldown.
    • Still always whisper in certain situations, such as when the broadcaster updates the cooldown by whispering the Bot.
  • Added EnableGenerateCommand field - enables or disables !generate. Broadcaster and AllowerUsers can override this setting, and still generate.
  • Start a second sentence if the generated sentence is too short, uses a new MinSentenceWordAmount value in settings.json.
  • Added a SentenceSeparator value, which is placed inbetween sentences, when multiple sentences are generated (only when the first sentence was too short according to MinSentenceWordAmount)
  • Renamed settings.txt with settings.json, which is automatically updated from v1.0
  • Update the database according to the punctuation changes. This creates a ..._backup.db file with the old database.
  • Add a Tokenizer file that handles splitting up a sentence into tokens, and merging tokens back into sentences.
  • Improved README - removed troublesome HTML tags, improved readability, and added new fields in settings.
  • Modified default outputs slightly (e.g. after using !enable).
  • The default help Timer is now once every 5 hours, instead of off.
  • Added .gitignore.
  • Added typing to parameters in methods.
  • Added better docstrings to methods.
  • Improved code quality.

See #17, #14 and #16.

Thanks to @justinrusso for the help.


  • Tom Aarsen

Don't miss a new TwitchMarkovChain release

NewReleases is sending notifications on new releases.