Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit b593dc4

Browse files
author
Tom Bell
committed
Merge pull request #736 from tybenz/master
Fixes to hangout.coffee
2 parents da64c01 + 15b7123 commit b593dc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scripts/hangout.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# nicoritschel
1616

1717
module.exports = (robot) ->
18-
robot.listen /hangout(.*)/i, (msg) ->
19-
if HUBOT_HANGOUT_URL
18+
robot.respond /hangout\s?(.*)?/i, (msg) ->
19+
if process.env.HUBOT_HANGOUT_URL
2020
msg.send process.env.HUBOT_HANGOUT_URL
2121
else
22-
msg.send "Environment variable HUBOT_HANGOUT_URL has not been set. Add EXPORT HUBOT_HANOUT_URL="..." to your profile"
22+
msg.send 'Environment variable HUBOT_HANGOUT_URL has not been set. Add EXPORT HUBOT_HANGOUT_URL="..." to your Procfile.'

0 commit comments

Comments
 (0)