bulgakovk / steamBot

A simple example of bot which can parse items from incoming offers and send outgoing offer trades confirming it by 2FA code.
14 stars 5 forks source link

new help Error #28

Open shortshows opened 8 years ago

shortshows commented 8 years ago

C:\botarno>node bot.js Steam Guard App Code: Steam Guard App Code: ....... Logged ON! Got API key: ........................................... C:\botarno\bot.js:99 newItems.forEach(function(newItem,i,arr){ ^

TypeError: Cannot read property 'forEach' of undefined at Request.callback as _callback at Request.self.callback (C:\botarno\node_modules\request\request.js:198:22)

at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.<anonymous> (C:\botarno\node_modules\request\request.js:1035:10)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at IncomingMessage.<anonymous> (C:\botarno\node_modules\request\request.js:9

62:12) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7)

C:\botarno>pause Press any key to continue . . . this happens when it gets a trade

andrewda commented 8 years ago

I believe you edited the bot a little. Whatever edit(s) you made caused newItems to be undefined instead of an array.