acupoftee / Pachimari

Discord bot for retrieving the latest in Overwatch League news. (Shutdown due to OWL API shutdown)
https://acupoftee.github.io/Pachimari-Dashboard
1 stars 0 forks source link

Embed Message Sent Twice #19

Closed acupoftee closed 5 years ago

acupoftee commented 5 years ago

Messages are now sent twice after receiving the following error in the console:

events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE: address already in use :::3000
    at Server.setupListenHandle [as _listen2] (net.js:1290:14)
    at listenInCluster (net.js:1338:12)
    at Server.listen (net.js:1425:7)
    at Function.listen (/Users/deedee/Desktop/Coding/Web Dev/Pachimari/node_modules/express/lib/application.js:618:24)
    at client.login.then (/Users/deedee/Desktop/Coding/Web Dev/Pachimari/src/bot.js:123:13)
Emitted 'error' event at:
    at emitErrorNT (net.js:1317:8)
    at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pachimari@1.5.0 start: `node src/bot.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the pachimari@1.5.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/deedee/.npm/_logs/2019-06-13T13_25_00_529Z-debug.log

This was first addressed by commenting out app.listen(process.env.PORT || 3000); in line 123 in bot.js.

Embeds are now being sent twice.