FIRST:
You need to have Node and NPM (Node package manager) installed. - (Links Below)
After that, you need to initialize npm by opening a terminal/command-promt and type "npm init".
After that, you need to install the Discord api by typing "npm install discord.js --save" in a terminal/command-promt.
Now what you need to do is create a Discord bot on the Discord developers website (link below) and put it's token in config.json.
After Setup:
To start the bot, open a terminal/command-promt in the folder with this bot. Then run this command: "node bot.js"
This software is completley free and open for use. The only thing you can't do, is take the template and say it is your own template.
This software uses the ISC lisence which you can find more about here: https://en.wikipedia.org/wiki/ISC_license
You don't need to give me credit, but credit is apprecieated.
My Twitter: https://twitter.com/0xZ0F
Node.js: https://nodejs.org/en/
Discord Developer Website: https://discordapp.com/developers/
Create a bot/app here: https://discordapp.com/developers/applications/me