Error when starting Discord Bot


#1

Hi,

I am trying to host this Discord bot: https://github.com/DougTy/concord on glitch.

But following the instructions on the page (https://github.com/DougTy/concord/wiki) I enter node index.js but it responds with this error message:

“Starting inspector on localhost:9200 failed: address not available
[2018-07-15 08:59:11] process exited with code 12, restarting…”

It repeats that error throughout the logs.

I have no idea what is going on pls help me


#2

You don’t need to do node index.js to start a node process on glitch, you just need to properly configure your package.json with a start script, and glitch will handle starting it.


#3

I’m sorry for sounding like I don’t understand, but how would I do that?


#4

It seems like the github repository already has a package.json, could you give a link to your project so I could see?


#5

#6

It’s a little difficult to comment without seeing the code as your project is private, and the linked app doesn’t have a config.json settings file. But it looks like it’s trying to listen on port 9200 - we recommend you use 3000 (which is what process.env.PORT defaults to)