Skip to content

Commit

Permalink
Fix robot variable, and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Sep 8, 2016
1 parent f20f161 commit c664c7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hubot-group-alias",
"description": "Easy @mention groups aliases for your chatroom",
"version": "2.1.3-1",
"version": "2.2.0",
"author": "Michael Ball <[email protected]>",
"license": "MIT",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions src/alias.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ buildGroupObject = ->
return groupCache

# Return Groups Mentioned in a message if there is a dynamic group.
getGroups = (text) ->
getGroups = (robot, text) ->
if useDynamicGroups
groupMap = {}
regex = /[:(]+(\w+)[:)]+|@(\w+)/gi
Expand Down Expand Up @@ -122,6 +122,6 @@ module.exports = (robot) ->

regex = buildRegExp()
robot.hear regex, (resp) ->
groups = getGroups(resp.message.text)
groups = getGroups(robot, resp.message.text)
if !_.isEqual(groups, {}) # don't send message if no groups found.
resp.send expand(resp.message.text, groups, resp.message.user)

0 comments on commit c664c7d

Please sign in to comment.