Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
21 lines (19 sloc) 0.376 kB
# Description:
# Get a fortune
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot fortune me - Displays a super true fortune
#
# Author:
# mrtazz
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.