Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed `Working-on.coffee`: incorrect function name #533

Merged
merged 1 commit into from

3 participants

Abhishek Das Zac Echola Josh Nichols
Abhishek Das

The script working-on.coffee was not working. The error was that there was no function defined by the name of findUser. Changed that to robot.userForName and it seems to be working fine.

Zac Echola

The findUser function can be found in the availability.coffee script. I copied the function over from that script in my pull request, but your changes seem to work, too.

Abhishek Das

Oh. I wasn't using availability.coffee. That's why I didn't find the function. My change works fine. No need to add another function for the same job I guess.

Josh Nichols technicalpickles merged commit ce25e36 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/scripts/working-on.coffee
2  src/scripts/working-on.coffee
View
@@ -31,7 +31,7 @@ module.exports = (robot) ->
robot.respond /(i\'m|i am) working on (.*)/i, (msg) ->
name = msg.message.user.name
- user = findUser name
+ user = robot.userForName name
if typeof user is 'object'
user.workingon = msg.match[2]
Something went wrong with that request. Please try again.