A hubot script that retreives random reddit jokes by building on original reddit-jokes script by tombell and ericjsilva
See src/jokes.coffee
for full documentation.
In hubot project repo, run:
npm install hubot-jokes --save
Then add hubot-jokes to your external-scripts.json
:
[
"hubot-jokes"
]
Retreive a random joke from /r/cleanjokes
If type is one of the allowed types it'll retreive a random joke from corresponding subreddit
Allowed types and corresponding subreddit:
- simple - r/jokes
- dad - r/dadjokes
- mom - r/mommajokes
- yo momma - r/mommajokes
- clean - r/cleanjokes
- classy - r/classyjokes
user1>> hubot tell me a joke
hubot>> <random joke from r/cleanjokes >
user1>> hubot tell me a dad joke
hubot>> <random joke from r/dadjokes >
user1>> hubot yo momma joke
hubot>> <random joke from r/mommajokes >