Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renamed standup.coffee to hangout.coffee

  • Loading branch information...
commit dcf5d6aa1f509ee3a6e3fb7b96aebbd028bb405b 1 parent 65d7992
@nicosuave nicosuave authored
Showing with 22 additions and 0 deletions.
  1. +22 −0 src/scripts/hangout.coffee
View
22 src/scripts/hangout.coffee
@@ -0,0 +1,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.listen /hangout(.*)/i, (msg) ->
+ if 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_HANOUT_URL="..." to your profile"
Please sign in to comment.
Something went wrong with that request. Please try again.