We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
we've set the env var HUBOT_MARKOV_RESPOND_CHANCE to 0.005 for very infrequent but very humorous responses.
HUBOT_MARKOV_RESPOND_CHANCE
0.005
Unfortunately this line... https://github.com/smashwilson/hubot-markov/blob/master/src/config.coffee#L6 tests for digits and fails on '.'
can I suggest /^[-+]?[0-9]*\.?[0-9]+$/.test
/^[-+]?[0-9]*\.?[0-9]+$/.test
Thanks for helping us to brighten our days with markov enabled hubot!
The text was updated successfully, but these errors were encountered:
I fixed it by setting it like this:
respondChance: parseFloat(hash.HUBOT_MARKOV_RESPOND_CHANCE)
Sorry, something went wrong.
The fix also requires in default-listeners.coffee changing preprocessor.words( to processors.words.pre(
preprocessor.words(
processors.words.pre(
@bnfinet have you sent a pull request for this? Your fix worked for me.
Fixed in #29
No branches or pull requests
we've set the env var
HUBOT_MARKOV_RESPOND_CHANCE
to0.005
for very infrequent but very humorous responses.Unfortunately this line...
https://github.com/smashwilson/hubot-markov/blob/master/src/config.coffee#L6
tests for digits and fails on '.'
can I suggest
/^[-+]?[0-9]*\.?[0-9]+$/.test
Thanks for helping us to brighten our days with markov enabled hubot!
The text was updated successfully, but these errors were encountered: