```coffeescript
# joke me - Pull a random joke from /r/jokes

module.exports = (robot) ->

  robot.respond /joke me/i, (msg) ->
    msg.http('http://www.reddit.com/r/jokes.json')
      .get() (err, res, body) ->
        try
          data = JSON.parse body
          children = data.data.children
          joke = msg.random(children).data.selftext
          msg.send joke

        catch ex
          msg.send "Erm, something went EXTREMELY wrong - #{ex}"
```

Add support for loading titles, and removing ellipsis if needed. eg: title="Title and..." selftext="...rest of joke" gets changed into "Title and rest of joke"
user
```coffeescript
# joke me - Pull a random joke from /r/jokes

module.exports = (robot) ->

  robot.respond /joke me/i, (msg) ->
    msg.http('http://www.reddit.com/r/jokes.json')
      .get() (err, res, body) ->
        try
          data = JSON.parse body
          children = data.data.children
          joke = msg.random(children).data

          if joke.selftext.match /^\.\.\./
            joketext = joke.title.replace(/\*\.\.\.$/,'') + ' ' + joke.selftext.replace(/^\.\.\.\s*/, '')
          else
            joketext = joke.selftext

          msg.send joketext.trim()

        catch ex
          msg.send "Erm, something went EXTREMELY wrong - #{ex}"
```
assistant