A hubot script for playing Madlibs with your Hubot.
In hubot project repo, run:
npm install hubot-madlibs
Then add hubot-madlibs to your external-scripts.json
:
[
"hubot-madlibs"
]
madlib start
- starts a new round of Madlibs
madlib start <number>
- starts using the madlib at index of
madlib cancel
- cancels a current round of Madlibs
madlib (respond|r|submit|s) <response>
- submits a Madlib response
The array Madlib#madlibs contains madlib data. Each element should be a JSON object containing two attributes: 'title' and 'text'. Format your text by placing blanks to be filled within double curly breaks, e.g. {{noun}}.