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

Commit 4859d65

Browse files
committed
Changed name for responseText, messages are now synced
1 parent 7f75ea4 commit 4859d65

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/scripts/steam.coffee

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ sanitize = require('validator').sanitize
2525

2626
module.exports = (robot) ->
2727
robot.respond /daily deal/i, (msg) ->
28-
getDeals msg, (responseText) ->
29-
msg.send responseText[0]
30-
msg.send responseText[1]
31-
28+
getDeals msg, (deal) ->
29+
msg.send deal[0], deal[1]
3230

3331
getDeals = (msg, callback) ->
3432
location = "http://store.steampowered.com"

0 commit comments

Comments
 (0)