Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 10 lines (8 sloc) 0.261 kb
1 2 3 4 5 6 7 8 9
# Get a fortune
#
# fortune me - Displays a super true fortune

module.exports = (robot) ->
  robot.respond /(fortune)( me)?/i, (msg) ->
    msg.http('http://www.fortunefortoday.com/getfortuneonly.php')
       .get() (err, res, body) ->
         msg.reply body
Something went wrong with that request. Please try again.