Bot setting ERROR

June 29, 2017 1.8k views

I need help with this i write node bot.js

1 Answer


Please stop taking screenshots, simply copy and paste the text.
You have a malformed line on line 22 in index.js

  • [deleted]
  • @Kapec Guess your message was caught by the spam filter. You wrote:
    index.js not index.php or site.js ?
    Have a look at line 10 in your screenshot.

    • when i write node site.js i got this error

      [2017-06-29 19:03:51.267] [DEBUG] [default] - { [Error: listen EADDRINUSE] code: ‘EADDRINUSE’, errno: 'EADDRINUSE’, syscall: 'listen’ }
      Error: listen EADDRINUSE
      at exports.errnoException (util.js:746:11)
      at Server.
      listen2 (net.js:1158:14)
      at listen (net.js:1184:10)
      at Server.listen (net.js:1269:5)
      at Server.listen.Server.attach (/home/bot/nodemodules/
      at null.
      onTimeout (/home/bot/site.js:618:29)
      at Timer.listOnTimeout (timers.js:119:15)

Have another answer? Share your knowledge.