Skip to content
This repository
file 21 lines (19 sloc) 0.376 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# 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
Something went wrong with that request. Please try again.