Skip to content

pablitoarango/hubot-jokes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hubot Jokes

Travis branch npm

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.

Installation

In hubot project repo, run:

npm install hubot-jokes --save

Then add hubot-jokes to your external-scripts.json:

[
  "hubot-jokes"
]

Commands

Tell me a joke

Retreive a random joke from /r/cleanjokes

Tell me a <type> joke or <type> joke

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

Sample Interaction

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 >

NPM Module

https://www.npmjs.com/package/hubot-jokes

About

A hubot script that retreives random reddit jokes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published