hubot-scripts
Version:
Allows you to opt in to a variety of scripts
23 lines (21 loc) • 660 B
text/coffeescript
# 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.'