Quote Command for Botyo
The Quote Command for Botyo uses Markov chains to generate quotes based on messages sent by the participants of a chat thread.
#quote [ <person> | me | all [ on <subject> ] ]
#quote Alice- Generates a quote by Alice.
#quote meor simply
#quote- Quotes the sender of the message.
#quote *- Builds a Markov chain based on all but the bot's messages in the chat, and generates an anonymous quote.
#quote Alice on cats- Generates a quote by Alice starting with 'cats'.
#quote all on the bot- Generates a quote based on all messages, starting with 'the bot'.
- Persistence Bundle - must be configured and enabled to store the messages in the database, since the Quote Command generates sentences based on messages in DB in order to avoid downloading the entire chat history on every command invocation.
Step 1. Install the module from npm.
npm install --save botyo-command-quote
Step 2. Register the module.
The configuration of the module has sensible defaults and doesn't need to be explicitly configured. However, you can still override the defaults in your configuration file or upon module registration.