brobbot-quote
v4.2.0
Published
brobbot script to remember quotes and retreive them later
Downloads
4
Readme
brobbot-quote
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!
Matching
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
.
Configuration:
Substring matching
Include substring matches as well as stem matches when searching for quotes.
BROBBOT_QUOTE_SUBSTRING_MATCHING=true|flase
Cache size
Cache the last N
messages for each user for potential remembrance (default 25).
BROBBOT_QUOTE_CACHE_SIZE=N
Store size
Remember at most N
messages for each user (default 100).
BROBBOT_QUOTE_STORE_SIZE=N
Initialization timeout
Wait for N milliseconds for brobbot to initialize and load brain data from redis. (default 10000)
BROBBOT_QUOTE_INIT_TIMEOUT=N
Commands:
Remember
Remember most recent message from <user>
containing <text>
.
brobbot remember <user> <text>
Forget
Forget most recent remembered message from <user>
containing <text>
.
brobbot forget <user> <text>
Quote
Quote a random remembered message that is from <user>
and/or contains <text>
.
brobbot quote [<user>] [<text>]
Quotemash
Quote some random remembered messages that are from <user>
and/or contain <text>
.
brobbot quotemash [<user>] [<text>]
Quotemash (alternate form)
Quote some random remembered messages that are from <user>
or contain <text>
.
brobbot <text>|<user>mash
Quotemash (regex form)
Quote some random remembered messages that match <regex>
.
brobbot /<regex>/mash