Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (8 sloc) 0.261 kB
# 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
Jump to Line
Something went wrong with that request. Please try again.