Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
23 lines (21 sloc) 0.656 kB
# 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.'
Jump to Line
Something went wrong with that request. Please try again.