A repository for people who are new to Discord.js
First you need to have Node.js installed on your PC or Server (wherever you will run your bot.) Download it from here.
It would take a lot of time for us to teach you how to install Node.js on your Operating System, so please learn how to install it first and then come back here.
We need to install Discord.js library in order to get everything working.
We are going to do that with NPM (Node Package Manager).
We already included a package.json file that will tell NPM which dependencies needs to be installed.
You need to do npm install
or npm install discord.js
and wait for it to be installed.
You need to navigate to the Developers Section of Discord and create an application. The procedure is extremely easy and step-by-step guided, so you shouldn't experience any problems.
After you have created your application, navigate to the "Bot" tab and create a bot account for your application.
Copy the token and enter it to config.json of the bot files you downloaded.
Run Node.js client, navigate to the folder that you downloaded the files and type npm start
or node index.js
.
You're ready to go!
Feel free to make contributions to the repository!