We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b78432e commit 25e33e1Copy full SHA for 25e33e1
scripts/pingpong.coffee
@@ -35,7 +35,7 @@ module.exports = (robot) ->
35
36
37
show_player_stats = (msg) ->
38
- player = msg.match[0]
+ player = msg.match[1]
39
msg.send player
40
41
wins = 0
@@ -53,12 +53,10 @@ show_player_stats = (msg) ->
53
54
55
show_match_stats = (msg) ->
56
- player1 = msg.match[0]
+ player1 = msg.match[1]
57
player2 = msg.match[2]
58
msg.send player1
59
msg.send player2
60
- msg.send msg.match[1]
61
-
62
63
64
redisClient.hget player1, player2, (err, value) ->
@@ -72,7 +70,7 @@ show_match_stats = (msg) ->
72
70
73
71
74
store_results = (msg) ->
75
76
77
78
redisClient.hincrby(player1, player2, 1)
0 commit comments