Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 22 lines (21 sloc) 0.66 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# Description:
# Listens for "hangout" keyword and sends Google Hangout url. Saves a couple minutes in our office.
#
# Configuration:
# HUBOT_HANGOUT_URL
#
# Commands:
# hubot hangout - sends hangout url
#
# Notes:
# To generate a static Hangout URL, create a Google+ event sometime in the future
# @ https://plus.google.com/events
#
# Author:
# nicoritschel

module.exports = (robot) ->
  robot.respond /hangout\s?(.*)?/i, (msg) ->
    if process.env.HUBOT_HANGOUT_URL
      msg.send process.env.HUBOT_HANGOUT_URL
    else
      msg.send 'Environment variable HUBOT_HANGOUT_URL has not been set. Add EXPORT HUBOT_HANGOUT_URL="..." to your Procfile.'
Something went wrong with that request. Please try again.