Remember things people have recently said, and quote them back later.
Alice: pizza is delicious!
Bob: I guess so.
Mallory: pizza is pretty delicious
Eve: brobbot remember alice pizza
Brobbot: remembering Alice: pizza is delicious!
Eve: brobbot quote alice
Brobbot: Alice: pizza is delicious!
It currently matches using natural's PorterStemmer
to match words regardless of conjugation, tense, etc.
It looks for substring matches when the search string doesn't look like words (doesn't match /\b[\w]{2,}\b/
) or BROBBOT_QUOTE_SUBSTRING_MATCHING=true
.
Include substring matches as well as stem matches when searching for quotes.
BROBBOT_QUOTE_SUBSTRING_MATCHING=true|flase
Cache the last N
messages for each user for potential remembrance (default 25).
BROBBOT_QUOTE_CACHE_SIZE=N
Remember at most N
messages for each user (default 100).
BROBBOT_QUOTE_STORE_SIZE=N
Wait for N milliseconds for brobbot to initialize and load brain data from redis. (default 10000)
BROBBOT_QUOTE_INIT_TIMEOUT=N
Remember most recent message from <user>
containing <text>
.
brobbot remember <user> <text>
Forget most recent remembered message from <user>
containing <text>
.
brobbot forget <user> <text>
Quote a random remembered message that is from <user>
and/or contains <text>
.
brobbot quote [<user>] [<text>]
Quote some random remembered messages that are from <user>
and/or contain <text>
.
brobbot quotemash [<user>] [<text>]
Quote some random remembered messages that are from <user>
or contain <text>
.
brobbot <text>|<user>mash
Quote some random remembered messages that match <regex>
.
brobbot /<regex>/mash