Mail addresses of people who chose to make them public are availible below their profile picture on their profile page (e.g. https://github.com/mpboom).
I’ve checked your code and made a pull request where the bot is fixed up until the point it works. I’ll highlight the problems below:
- The token you checked into source control * was invalid. I tested it with a token from a bot on my account and it did work.
- You had a file called index.js that runs the entire app. You can then start the app by running node index.js. If you’d also like to be able to start your app by running npm start , you need to modify the package.json a bit. I did that for you in the pull request so you can see what I actually changed.
- You need to install external packages like discord.js manually trough NPM. You can define them in your package.json first, which you already did, and then install them using npm install. It’ll create a big directory called node_modules that you should put in a file called .gitignore. That way, it won’t be checked into source control (= it won’t be uploaded to GitHub). I already did the last part (ignoring the node_modules folder), but since I can’t access your computer you’ll have to run npm install manually yourself.
As I explained in the PR, you should now be able to run your bot using node index.js or npm start after reviewing my changes.
If you have any more questions about learning Node - or a different language! - we are here to help!
* Please never check tokens into source control! Instead, store them in a seperate - not checked in - file and retrieve them from there in your application. That way you POINT to the token instead of actually uploading it to GitHub.