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

Commit

Permalink
Merge pull request #694 from Iristyle/patch-14
Browse files Browse the repository at this point in the history
Conflicts fixed github-credentials / working-on
  • Loading branch information
Tom Bell committed Jan 10, 2013
2 parents ba2f627 + 47c4136 commit e061bc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/github-credentials.coffee
Expand Up @@ -19,7 +19,7 @@

module.exports = (robot) ->

robot.respond /who do you know/i, (msg) ->
robot.respond /who do you know(\?)?$/i, (msg) ->
theReply = "Here is who I know:\n"

for own key, user of robot.brain.data.users
Expand All @@ -28,12 +28,12 @@ module.exports = (robot) ->

msg.send theReply

robot.respond /i am ([a-z0-9-]+)/i, (msg) ->
robot.respond /i am ([a-z0-9-]+)\s*$/i, (msg) ->
githubLogin = msg.match[1]
msg.message.user.githubLogin = githubLogin
msg.send "Ok, you are " + githubLogin + " on GitHub"

robot.respond /who am i/i, (msg) ->
robot.respond /who am i\s*$/i, (msg) ->
user = msg.message.user
if user.githubLogin
msg.reply "You are known as " + user.githubLogin + " on GitHub"
Expand Down

0 comments on commit e061bc8

Please sign in to comment.