Skip to content

Commit d19ecf4

Browse files
committed
minor change in getting the user's names
1 parent e6b0784 commit d19ecf4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/leaderboard.coffee

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ module.exports = (robot) ->
6969
updateScore = (word, field, username) ->
7070
posRegex = /\+\+/
7171
negRegex = /\-\-/
72-
names = Object.keys(robot.brain.data.users)
72+
users = robot.brain.data.users
73+
names = Object.keys(users).map (key) => users[key].name
74+
console.log(names, "abc")
7375

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

0 commit comments

Comments
 (0)