Enable Hubot to learn from chat history and impersonate users.
Bob: pizza is super good
Alice: hubot impersonate bob
Hubot: impersonating Bob
Eve: I love pizza
Hubot: pizza is super
...
Currently uses simple Markov chain based on markov-respond. I'm using msgpack to store the model efficiently.
Set the mode of operation (default 'train'). Can be one of 'train', 'respond', 'train_respond'.
HUBOT_IMPERSONATE_MODE=mode
Ignore messages with fewer than N
words (default 1).
HUBOT_IMPERSONATE_MIN_WORDS=N
Wait for N milliseconds for hubot to initialize and load brain data from redis. (default 10000)
HUBOT_IMPERSONATE_INIT_TIMEOUT=N
Whether to keep the original case of words. (default false)
HUBOT_IMPERSONATE_CASE_SENSITIVE=true|false
Whether to strip punctuation/symbols from messages. (default false)
HUBOT_IMPERSONATE_STRIP_PUNCTUATION=true|false
Start impersonating <user>
.
hubot impersonate <user>
Stop impersonating.
hubot stop impersonating