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.
Pull request overview:
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.WhisperCooldown
field - whether the Bot whispers the cooldown message. Otherwise, do not send the cooldown.EnableGenerateCommand
field - enables or disables!generate
. Broadcaster andAllowerUsers
can override this setting, and still generate.MinSentenceWordAmount
value in settings.json.SentenceSeparator
value, which is placed inbetween sentences, when multiple sentences are generated (only when the first sentence was too short according toMinSentenceWordAmount
)settings.txt
withsettings.json
, which is automatically updated from v1.0!enable
)..gitignore
.See #14 and #16.
Thanks to @justinrusso for the help.