hubot-mimic
Build a markov model of everything Hubot hears, modeling individual users.
Last updated 5 years ago by jfhamlin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-mimic 
SYNC missed versions from official npm registry.

Hubot Mimic

Generates a markov model based on everything that your Hubot sees in your chat.

Installing

  1. Add hubot-mimic to your package.json:
  "dependencies": {
    "hubot-mimic": "~0.1.2"
  },
  1. Require the module in external-scripts.json:
["hubot-mimic"]
  1. Run npm update and restart your Hubot.

Commands

Saying anything at all in chat appends to the model. The robot is always watching!

Hubot: mimic edith will randomly generate text based on the current contents of its model for the user 'edith'.

Hubot: mimic all will randomly generate text based on the current contents of its model.

Hubot: mimic all your mother is a will generate a random phrase seeded with the phrase you give it. This command might output "your mother is a classy lady", for example. Remember: Hubot is an innocent soul, and what he says only acts as a mirror for everything in your hearts.

Configuring

The Hubot markov model can optionally be configured by two environment variables:

HUBOT_MARKOV_PLY controls the order of the model that's built; effectively, how many previous states (words) are considered to choose the next state. You can bump this up if you'd like, but the default of 1 is both economical with storage and maximally hilarious.

HUBOT_MARKOV_LEARN_MIN controls the minimum length of a phrase that will be used to train the model, default 1. Set this higher to avoid training your model with a bunch of immediate terminal transitions like "lol".

HUBOT_MARKOV_GENERATE_MAX controls the maximum size of a markov chain that will be generated by the "markov" command.

Current Tags

  • 0.1.2                                ...           latest (5 years ago)

3 Versions

  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (2)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |