Skip to content

Commit

Permalink
minor change in getting the user's names
Browse files Browse the repository at this point in the history
  • Loading branch information
csoni111 committed Jun 18, 2017
1 parent e6b0784 commit d19ecf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/leaderboard.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ module.exports = (robot) ->
updateScore = (word, field, username) ->
posRegex = /\+\+/
negRegex = /\-\-/
names = Object.keys(robot.brain.data.users)
users = robot.brain.data.users
names = Object.keys(users).map (key) => users[key].name
console.log(names, "abc")

# if there is to be `plus` in score
if word.indexOf("++") >= 0
Expand Down

0 comments on commit d19ecf4

Please sign in to comment.